cabal-install: fix the build with ghc-8.8.x

This commit is contained in:
Peter Simons 2021-03-19 20:51:56 +01:00
parent f17596c260
commit 1c16f8cf4f

View File

@ -52,15 +52,17 @@ self: super: {
haddock = self.haddock_2_23_1; haddock = self.haddock_2_23_1;
haddock-api = self.haddock-api_2_23_1; haddock-api = self.haddock-api_2_23_1;
# These builds need newer versions of Cabal. # This build needs a newer version of Cabal.
cabal2spec = super.cabal2spec.override { Cabal = self.Cabal_3_2_1_0; }; cabal2spec = super.cabal2spec.override { Cabal = self.Cabal_3_2_1_0; };
cabal-install = super.cabal-install.override {
Cabal = super.Cabal_3_4_0_0; # cabal-install needs more recent versions of Cabal and random, but an older
hackage-security = super.hackage-security.override { Cabal = super.Cabal_3_4_0_0; }; # version of base16-bytestring.
# Using dontCheck to break test dependency cycles cabal-install = super.cabal-install.overrideScope (self: super: {
edit-distance = dontCheck (super.edit-distance.override { random = super.random_1_2_0; }); Cabal = self.Cabal_3_4_0_0;
random = super.random_1_2_0; base16-bytestring = self.base16-bytestring_0_1_1_7;
}; random = dontCheck super.random_1_2_0; # break infinite recursion
hashable = doJailbreak super.hashable; # allow random 1.2.x
});
# Ignore overly restrictive upper version bounds. # Ignore overly restrictive upper version bounds.
aeson-diff = doJailbreak super.aeson-diff; aeson-diff = doJailbreak super.aeson-diff;