ghc-8.10.x: add plenty of overrides to fix builds
This commit is contained in:
parent
135ae45d24
commit
10100a97c8
|
@ -60,5 +60,38 @@ self: super: {
|
||||||
zlib = doJailbreak super.zlib;
|
zlib = doJailbreak super.zlib;
|
||||||
|
|
||||||
# Use the latest version to fix the build.
|
# Use the latest version to fix the build.
|
||||||
|
microlens-th = self.microlens-th_0_4_3_5;
|
||||||
|
optics-core = self.optics-core_0_3;
|
||||||
|
repline = self.repline_0_3_0_0;
|
||||||
|
ghc-lib-parser-ex = self.ghc-lib-parser-ex_8_10_0_4;
|
||||||
|
th-desugar = self.th-desugar_1_11;
|
||||||
|
|
||||||
|
# `ghc-lib-parser-ex` (see conditionals in its `.cabal` file) does not need
|
||||||
|
# the `ghc-lib-parser` dependency on GHC >= 8.8. However, because we have
|
||||||
|
# multiple verions of `ghc-lib-parser(-ex)` available, and the default ones
|
||||||
|
# are older ones, those older ones will complain. Because we have a newer
|
||||||
|
# GHC, we can just set the dependency to `null` as it is not used.
|
||||||
|
ghc-lib-parser-ex_8_10_0_4 = super.ghc-lib-parser-ex_8_10_0_4.override { ghc-lib-parser = null; };
|
||||||
|
|
||||||
|
# Jailbreak to fix the build.
|
||||||
|
aeson-diff = doJailbreak super.aeson-diff;
|
||||||
|
cborg = doJailbreak super.cborg;
|
||||||
|
cborg-json = doJailbreak super.cborg-json;
|
||||||
|
exact-pi = doJailbreak super.exact-pi;
|
||||||
|
relude = dontCheck (doJailbreak super.relude);
|
||||||
|
serialise = doJailbreak super.serialise;
|
||||||
|
setlocale = doJailbreak super.setlocale;
|
||||||
|
shellmet = doJailbreak super.shellmet;
|
||||||
|
brick = doJailbreak super.brick;
|
||||||
|
|
||||||
|
# The shipped Setup.hs file is broken.
|
||||||
|
csv = overrideCabal super.csv (drv: { preCompileBuildDriver = "rm Setup.hs"; });
|
||||||
|
|
||||||
|
# Apply patch from https://github.com/finnsson/template-helper/issues/12#issuecomment-611795375 to fix the build.
|
||||||
|
language-haskell-extract = appendPatch (doJailbreak super.language-haskell-extract) (pkgs.fetchpatch {
|
||||||
|
name = "language-haskell-extract-0.2.4.patch";
|
||||||
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/e48738ee1be774507887a90a0d67ad1319456afc/patches/language-haskell-extract-0.2.4.patch?inline=false";
|
||||||
|
sha256 = "0rgzrq0513nlc1vw7nw4km4bcwn4ivxcgi33jly4a7n3c1r32v1f";
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue