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

This commit is contained in:
Peter Simons 2021-03-19 20:57:01 +01:00
parent 1c16f8cf4f
commit 8377f503f1

View file

@ -43,12 +43,14 @@ self: super: {
unix = null;
xhtml = null;
# Build cabal-install with the compiler's native Cabal.
cabal-install = (doJailbreak super.cabal-install).override {
# Use dontCheck to break test dependency cycles
edit-distance = dontCheck (super.edit-distance.override { random = super.random_1_2_0; });
random = super.random_1_2_0;
};
# cabal-install needs more recent versions of random, but an older
# version of base16-bytestring.
cabal-install = (doJailbreak super.cabal-install).overrideScope (self: super: {
Cabal = null;
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
});
# Jailbreaks & Version Updates
async = doJailbreak super.async;