2021-05-30 23:24:21 +01:00
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
|
|
# This compiler version needs llvm 10.x.
|
|
|
|
llvmPackages = pkgs.lib.dontRecurseIntoAttrs pkgs.llvmPackages_10;
|
|
|
|
|
|
|
|
# Disable GHC 9.2.x core libraries.
|
|
|
|
array = null;
|
|
|
|
base = null;
|
|
|
|
binary = null;
|
|
|
|
bytestring = null;
|
|
|
|
Cabal = null;
|
|
|
|
containers = null;
|
|
|
|
deepseq = null;
|
|
|
|
directory = null;
|
|
|
|
exceptions = null;
|
|
|
|
filepath = null;
|
|
|
|
ghc-bignum = null;
|
|
|
|
ghc-boot = null;
|
|
|
|
ghc-boot-th = null;
|
|
|
|
ghc-compact = null;
|
|
|
|
ghc-heap = null;
|
|
|
|
ghc-prim = null;
|
|
|
|
ghci = null;
|
|
|
|
haskeline = null;
|
|
|
|
hpc = null;
|
|
|
|
integer-gmp = null;
|
|
|
|
libiserv = null;
|
|
|
|
mtl = null;
|
|
|
|
parsec = null;
|
|
|
|
pretty = null;
|
|
|
|
process = null;
|
|
|
|
rts = null;
|
|
|
|
stm = null;
|
|
|
|
template-haskell = null;
|
|
|
|
terminfo = null;
|
|
|
|
text = null;
|
|
|
|
time = null;
|
|
|
|
transformers = null;
|
|
|
|
unix = null;
|
|
|
|
xhtml = null;
|
|
|
|
|
2021-11-01 11:18:45 +00:00
|
|
|
# Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/20594
|
2021-10-26 11:20:34 +01:00
|
|
|
tf-random = overrideCabal {
|
2021-11-01 11:18:45 +00:00
|
|
|
doHaddock = !pkgs.stdenv.isAarch64;
|
2021-10-26 11:20:34 +01:00
|
|
|
} super.tf-random;
|
2021-11-01 11:18:45 +00:00
|
|
|
|
2021-10-26 11:20:34 +01:00
|
|
|
aeson = appendPatch (pkgs.fetchpatch {
|
2021-10-09 13:00:20 +01:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/aeson-1.5.6.0.patch";
|
|
|
|
sha256 = "07rk7f0lhgilxvbg2grpl1p5x25wjf9m7a0wqmi2jr0q61p9a0nl";
|
|
|
|
# The revision information is newer than that included in the patch
|
|
|
|
excludes = ["*.cabal"];
|
2021-10-26 11:20:34 +01:00
|
|
|
}) (doJailbreak super.aeson);
|
2021-10-09 13:00:20 +01:00
|
|
|
|
2021-10-26 11:20:34 +01:00
|
|
|
basement = overrideCabal (drv: {
|
2021-10-09 13:00:20 +01:00
|
|
|
# This is inside a conditional block so `doJailbreak` doesn't work
|
|
|
|
postPatch = "sed -i -e 's,<4.16,<4.17,' basement.cabal";
|
2021-10-26 11:20:34 +01:00
|
|
|
}) (appendPatch (pkgs.fetchpatch {
|
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/basement-0.0.12.patch";
|
|
|
|
sha256 = "0c8n2krz827cv87p3vb1vpl3v0k255aysjx9lq44gz3z1dhxd64z";
|
|
|
|
}) super.basement);
|
2021-10-09 13:00:20 +01:00
|
|
|
|
|
|
|
# Tests fail because of typechecking changes
|
|
|
|
conduit = dontCheck super.conduit;
|
|
|
|
|
2021-10-26 11:20:34 +01:00
|
|
|
cryptonite = appendPatch (pkgs.fetchpatch {
|
2021-10-09 13:00:20 +01:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/cryptonite-0.29.patch";
|
|
|
|
sha256 = "1g48lrmqgd88hqvfq3klz7lsrpwrir2v1931myrhh6dy0d9pqj09";
|
2021-10-26 11:20:34 +01:00
|
|
|
}) super.cryptonite;
|
2021-09-05 20:43:43 +01:00
|
|
|
|
2021-10-12 12:53:13 +01:00
|
|
|
# cabal-install needs more recent versions of Cabal
|
2021-05-30 23:24:21 +01:00
|
|
|
cabal-install = (doJailbreak super.cabal-install).overrideScope (self: super: {
|
2021-10-12 12:53:13 +01:00
|
|
|
Cabal = self.Cabal_3_6_2_0;
|
2021-05-30 23:24:21 +01:00
|
|
|
});
|
|
|
|
|
2021-11-12 09:44:22 +00:00
|
|
|
doctest = dontCheck (doJailbreak super.doctest_0_18_2);
|
2021-10-09 13:00:20 +01:00
|
|
|
|
|
|
|
# Tests fail in GHC 9.2
|
|
|
|
extra = dontCheck super.extra;
|
|
|
|
|
2021-05-30 23:24:21 +01:00
|
|
|
# Jailbreaks & Version Updates
|
2021-10-09 13:00:20 +01:00
|
|
|
assoc = doJailbreak super.assoc;
|
2021-05-30 23:24:21 +01:00
|
|
|
async = doJailbreak super.async;
|
2021-11-05 16:02:32 +00:00
|
|
|
attoparsec = super.attoparsec_0_14_2;
|
2021-10-01 12:06:03 +01:00
|
|
|
base64-bytestring = doJailbreak super.base64-bytestring;
|
2021-11-05 16:02:32 +00:00
|
|
|
base-compat = self.base-compat_0_12_1;
|
|
|
|
base-compat-batteries = self.base-compat-batteries_0_12_1;
|
|
|
|
binary-instances = doJailbreak super.binary-instances;
|
|
|
|
binary-orphans = super.binary-orphans_1_0_2;
|
2021-10-01 12:04:50 +01:00
|
|
|
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
2021-11-05 16:02:32 +00:00
|
|
|
constraints = doJailbreak super.constraints;
|
2021-10-26 11:20:34 +01:00
|
|
|
cpphs = overrideCabal (drv: { postPatch = "sed -i -e 's,time >=1.5 && <1.11,time >=1.5 \\&\\& <1.12,' cpphs.cabal";}) super.cpphs;
|
2021-10-09 13:00:20 +01:00
|
|
|
cryptohash-md5 = doJailbreak super.cryptohash-md5;
|
|
|
|
cryptohash-sha1 = doJailbreak super.cryptohash-sha1;
|
2021-05-30 23:24:21 +01:00
|
|
|
data-fix = doJailbreak super.data-fix;
|
|
|
|
dec = doJailbreak super.dec;
|
|
|
|
ed25519 = doJailbreak super.ed25519;
|
2021-10-09 13:00:20 +01:00
|
|
|
ghc-byteorder = doJailbreak super.ghc-byteorder;
|
2021-11-06 16:53:01 +00:00
|
|
|
ghc-lib = self.ghc-lib_9_2_1_20211101;
|
|
|
|
ghc-lib-parser = self.ghc-lib-parser_9_2_1_20211101;
|
|
|
|
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_0_1;
|
2021-05-30 23:24:21 +01:00
|
|
|
hackage-security = doJailbreak super.hackage-security;
|
2021-11-05 16:02:32 +00:00
|
|
|
hashable = super.hashable_1_4_0_0;
|
2021-11-13 23:05:22 +00:00
|
|
|
hashable-time = doJailbreak super.hashable-time_0_3;
|
2021-11-06 09:27:29 +00:00
|
|
|
hedgehog = doJailbreak super.hedgehog;
|
2021-10-26 11:20:34 +01:00
|
|
|
HTTP = overrideCabal (drv: { postPatch = "sed -i -e 's,! Socket,!Socket,' Network/TCP.hs"; }) (doJailbreak super.HTTP);
|
|
|
|
integer-logarithms = overrideCabal (drv: { postPatch = "sed -i -e 's, <1.1, <1.3,' integer-logarithms.cabal"; }) (doJailbreak super.integer-logarithms);
|
2021-10-09 13:00:20 +01:00
|
|
|
indexed-traversable = doJailbreak super.indexed-traversable;
|
2021-11-06 06:55:40 +00:00
|
|
|
indexed-traversable-instances = doJailbreak super.indexed-traversable-instances;
|
2021-10-09 13:00:20 +01:00
|
|
|
lifted-async = doJailbreak super.lifted-async;
|
2021-05-30 23:24:21 +01:00
|
|
|
lukko = doJailbreak super.lukko;
|
2021-10-10 19:28:33 +01:00
|
|
|
network = super.network_3_1_2_5;
|
2021-11-05 16:02:32 +00:00
|
|
|
OneTuple = super.OneTuple_0_3_1;
|
2021-05-30 23:24:21 +01:00
|
|
|
parallel = doJailbreak super.parallel;
|
2021-10-26 11:20:34 +01:00
|
|
|
polyparse = overrideCabal (drv: { postPatch = "sed -i -e 's, <0.11, <0.12,' polyparse.cabal"; }) (doJailbreak super.polyparse);
|
2021-10-01 12:06:03 +01:00
|
|
|
primitive = doJailbreak super.primitive;
|
2021-11-05 16:02:32 +00:00
|
|
|
quickcheck-instances = super.quickcheck-instances_0_3_26_1;
|
2021-05-30 23:24:21 +01:00
|
|
|
regex-posix = doJailbreak super.regex-posix;
|
|
|
|
resolv = doJailbreak super.resolv;
|
2021-11-06 06:55:40 +00:00
|
|
|
semialign = super.semialign_1_2_0_1;
|
2021-05-30 23:24:21 +01:00
|
|
|
singleton-bool = doJailbreak super.singleton-bool;
|
2021-10-09 13:00:20 +01:00
|
|
|
scientific = doJailbreak super.scientific;
|
|
|
|
shelly = doJailbreak super.shelly;
|
2021-05-30 23:24:21 +01:00
|
|
|
split = doJailbreak super.split;
|
2021-09-29 18:11:48 +01:00
|
|
|
splitmix = doJailbreak super.splitmix;
|
2021-05-30 23:24:21 +01:00
|
|
|
tar = doJailbreak super.tar;
|
2021-11-06 09:27:29 +00:00
|
|
|
tasty-hedgehog = doJailbreak super.tasty-hedgehog;
|
|
|
|
tasty-hspec = doJailbreak super.tasty-hspec;
|
|
|
|
th-desugar = self.th-desugar_1_13;
|
2021-10-09 13:00:20 +01:00
|
|
|
these = doJailbreak super.these;
|
2021-11-13 23:05:22 +00:00
|
|
|
time-compat = doJailbreak super.time-compat_1_9_6_1;
|
2021-10-09 13:00:20 +01:00
|
|
|
type-equality = doJailbreak super.type-equality;
|
2021-11-05 16:02:32 +00:00
|
|
|
unordered-containers = doJailbreak super.unordered-containers;
|
2021-05-30 23:24:21 +01:00
|
|
|
vector = doJailbreak (dontCheck super.vector);
|
|
|
|
vector-binary-instances = doJailbreak super.vector-binary-instances;
|
2021-11-06 06:55:40 +00:00
|
|
|
# Upper bound on `hashable` is too restrictive
|
|
|
|
witherable = doJailbreak super.witherable;
|
2021-05-30 23:24:21 +01:00
|
|
|
zlib = doJailbreak super.zlib;
|
2021-10-10 17:57:52 +01:00
|
|
|
|
2021-10-26 11:20:34 +01:00
|
|
|
hpack = overrideCabal (drv: {
|
2021-10-10 17:57:52 +01:00
|
|
|
# Cabal 3.6 seems to preserve comments when reading, which makes this test fail
|
|
|
|
# 2021-10-10: 9.2.1 is not yet supported (also no issue)
|
|
|
|
testFlags = [
|
|
|
|
"--skip=/Hpack/renderCabalFile/is inverse to readCabalFile/"
|
|
|
|
] ++ drv.testFlags or [];
|
2021-10-26 11:20:34 +01:00
|
|
|
}) (doJailbreak super.hpack);
|
2021-10-10 17:57:52 +01:00
|
|
|
|
2021-11-20 12:06:38 +00:00
|
|
|
# lens >= 5.1 supports 9.2.1
|
|
|
|
lens = super.lens_5_1;
|
2021-10-10 17:57:52 +01:00
|
|
|
|
2021-10-09 13:00:20 +01:00
|
|
|
# Syntax error in tests fixed in https://github.com/simonmar/alex/commit/84b29475e057ef744f32a94bc0d3954b84160760
|
|
|
|
alex = dontCheck super.alex;
|
|
|
|
|
2021-05-30 23:24:21 +01:00
|
|
|
# Apply patches from head.hackage.
|
2021-10-26 11:20:34 +01:00
|
|
|
language-haskell-extract = appendPatch (pkgs.fetchpatch {
|
2021-10-10 23:10:31 +01:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/language-haskell-extract-0.2.4.patch";
|
|
|
|
sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv";
|
2021-10-26 11:20:34 +01:00
|
|
|
}) (doJailbreak super.language-haskell-extract);
|
2021-05-30 23:24:21 +01:00
|
|
|
|
2021-10-26 11:20:34 +01:00
|
|
|
haskell-src-meta = appendPatch (pkgs.fetchpatch {
|
2021-10-09 13:00:20 +01:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/haskell-src-meta-0.8.7.patch";
|
|
|
|
sha256 = "013k8hpxac226j47cdzgdf9a1j91kmm0cvv7n8zwlajbj3y9bzjp";
|
2021-10-26 11:20:34 +01:00
|
|
|
}) (doJailbreak super.haskell-src-meta);
|
2021-10-09 13:00:20 +01:00
|
|
|
|
|
|
|
# Tests depend on `parseTime` which is no longer available
|
|
|
|
hourglass = dontCheck super.hourglass;
|
2021-05-30 23:24:21 +01:00
|
|
|
|
2021-10-01 12:03:19 +01:00
|
|
|
# 1.2.1 introduced support for GHC 9.2.1, stackage has 1.2.0
|
|
|
|
# The test suite indirectly depends on random, which leads to infinite recursion
|
|
|
|
random = dontCheck super.random_1_2_1;
|
|
|
|
|
2021-05-30 23:24:21 +01:00
|
|
|
# 0.16.0 introduced support for GHC 9.0.x, stackage has 0.15.0
|
2021-10-26 11:20:34 +01:00
|
|
|
memory = appendPatch (pkgs.fetchpatch {
|
2021-10-09 13:00:20 +01:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/memory-0.16.0.patch";
|
|
|
|
sha256 = "1kjganx729a6xfgfnrb3z7q6mvnidl042zrsd9n5n5a3i76nl5nl";
|
2021-10-26 11:20:34 +01:00
|
|
|
}) super.memory_0_16_0;
|
2021-05-30 23:24:21 +01:00
|
|
|
|
|
|
|
# GHC 9.0.x doesn't like `import Spec (main)` in Main.hs
|
|
|
|
# https://github.com/snoyberg/mono-traversable/issues/192
|
|
|
|
mono-traversable = dontCheck super.mono-traversable;
|
|
|
|
|
|
|
|
# Disable tests pending resolution of
|
|
|
|
# https://github.com/Soostone/retry/issues/71
|
|
|
|
retry = dontCheck super.retry;
|
|
|
|
|
2021-11-06 06:55:40 +00:00
|
|
|
# Upper bound on `hashable` is too restrictive
|
2021-10-26 11:20:34 +01:00
|
|
|
semigroupoids = overrideCabal (drv: { postPatch = "sed -i -e 's,hashable >= 1.2.7.0 && < 1.4,hashable >= 1.2.7.0 \\&\\& < 1.5,' semigroupoids.cabal";}) super.semigroupoids;
|
2021-11-06 06:55:40 +00:00
|
|
|
|
2021-11-05 16:02:32 +00:00
|
|
|
# Tests have a circular dependency on quickcheck-instances
|
|
|
|
text-short = dontCheck super.text-short_0_1_4;
|
|
|
|
|
2021-05-30 23:24:21 +01:00
|
|
|
# hlint 3.3 needs a ghc-lib-parser newer than the one from stackage
|
2021-09-11 02:01:29 +01:00
|
|
|
hlint = super.hlint_3_3_4.overrideScope (self: super: {
|
2021-11-06 09:27:29 +00:00
|
|
|
ghc-lib-parser = self.ghc-lib-parser_9_2_1_20211101;
|
|
|
|
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_0_1;
|
2021-05-30 23:24:21 +01:00
|
|
|
});
|
|
|
|
}
|