2019-04-29 17:51:19 +02:00
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
|
|
# This compiler version needs llvm 7.x.
|
|
|
|
llvmPackages = pkgs.llvmPackages_7;
|
|
|
|
|
|
|
|
# Disable GHC 8.8.x core libraries.
|
|
|
|
array = null;
|
|
|
|
base = null;
|
|
|
|
binary = null;
|
|
|
|
bytestring = null;
|
|
|
|
Cabal = null;
|
|
|
|
containers = null;
|
|
|
|
deepseq = null;
|
|
|
|
directory = null;
|
|
|
|
filepath = 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;
|
|
|
|
|
2019-04-30 11:32:16 +02:00
|
|
|
# Ignore overly restrictive upper version bounds.
|
2019-05-09 16:52:02 +02:00
|
|
|
async = doJailbreak super.async;
|
2019-08-28 17:25:53 +02:00
|
|
|
cabal-install = doJailbreak super.cabal-install;
|
2019-05-09 16:52:02 +02:00
|
|
|
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
2019-05-03 14:05:56 +02:00
|
|
|
cryptohash-sha256 = doJailbreak super.cryptohash-sha256;
|
2019-05-09 16:52:02 +02:00
|
|
|
Diff = dontCheck super.Diff;
|
2019-04-30 11:32:16 +02:00
|
|
|
doctest = doJailbreak super.doctest;
|
2019-05-03 21:38:27 +02:00
|
|
|
hashable = doJailbreak super.hashable;
|
2019-05-09 17:31:20 +02:00
|
|
|
hashable-time = doJailbreak super.hashable-time;
|
2019-08-28 17:25:27 +02:00
|
|
|
hledger-lib = doJailbreak super.hledger-lib; # base >=4.8 && <4.13, easytest >=0.2.1 && <0.3
|
2019-05-09 17:40:20 +02:00
|
|
|
integer-logarithms = doJailbreak super.integer-logarithms;
|
2019-05-09 17:29:25 +02:00
|
|
|
lucid = doJailbreak super.lucid;
|
2019-05-11 11:09:09 +02:00
|
|
|
parallel = doJailbreak super.parallel;
|
2019-05-09 17:43:38 +02:00
|
|
|
quickcheck-instances = doJailbreak super.quickcheck-instances;
|
2019-05-12 10:00:08 +02:00
|
|
|
setlocale = doJailbreak super.setlocale;
|
2019-05-09 16:52:02 +02:00
|
|
|
split = doJailbreak super.split;
|
2019-05-09 16:38:24 +02:00
|
|
|
tasty-expected-failure = doJailbreak super.tasty-expected-failure;
|
2019-05-09 16:52:02 +02:00
|
|
|
test-framework = doJailbreak super.test-framework;
|
2019-04-30 11:32:16 +02:00
|
|
|
|
|
|
|
# These packages don't work and need patching and/or an update.
|
2019-04-30 13:41:28 +02:00
|
|
|
primitive = overrideSrc (doJailbreak super.primitive) {
|
|
|
|
version = "20180530-git";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "haskell";
|
|
|
|
repo = "primitive";
|
|
|
|
rev = "97964182881aa0419546e0bb188b2d17e4468324";
|
|
|
|
sha256 = "1p1pinca33vd10iy7hl20c1fc99vharcgcai6z3ngqbq50k2pd3q";
|
|
|
|
};
|
|
|
|
};
|
2019-09-16 14:30:25 +02:00
|
|
|
vector-th-unbox = appendPatch (doJailbreak super.vector-th-unbox) (pkgs.fetchpatch {
|
2019-05-09 17:18:13 +02:00
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/vector-th-unbox-0.2.1.6.patch";
|
|
|
|
sha256 = "0169yf9ms1g5mmkc5l6hpffzm34zdrqdng4df02nbdmfgba45h19";
|
|
|
|
});
|
2019-08-28 17:21:17 +02:00
|
|
|
regex-base = overrideCabal (appendPatch super.regex-base (pkgs.fetchpatch {
|
2019-05-02 20:27:48 +02:00
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/regex-base-0.93.2.patch";
|
2019-05-03 15:36:41 +02:00
|
|
|
sha256 = "01d1plrdx6hcspwn2h6y9pyi5366qk926vb5cl5qcl6x4m23l6y1";
|
2019-08-28 17:21:17 +02:00
|
|
|
})) (drv: {
|
|
|
|
preConfigure = "sed -i -e 's/base >=4 && < 4.13,/base,/' regex-base.cabal";
|
2019-05-03 15:36:41 +02:00
|
|
|
});
|
|
|
|
regex-posix = appendPatch super.regex-posix (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/regex-posix-0.95.2.patch";
|
|
|
|
sha256 = "006yli58jpqp786zm1xlncjsilc38iv3a09r4pv94l587sdzasd2";
|
|
|
|
});
|
2019-05-11 11:06:49 +02:00
|
|
|
optparse-applicative = appendPatch (doJailbreak super.optparse-applicative) (pkgs.fetchpatch {
|
2019-05-03 21:38:27 +02:00
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/optparse-applicative-0.14.3.0.patch";
|
|
|
|
sha256 = "068sjj98jqiq3h8h03mg4w2pa11q8lxkx2i4lmxivq77xyhlwq3y";
|
|
|
|
});
|
|
|
|
hackage-security = appendPatch (doJailbreak super.hackage-security) (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/hackage-security-0.5.3.0.patch";
|
|
|
|
sha256 = "0l8x0pbsn18fj5ak5q0g5rva4xw1s9yc4d86a1pfyaz467b9i5a4";
|
|
|
|
});
|
2019-09-16 18:02:21 +02:00
|
|
|
hedgehog = appendPatch (doJailbreak super.hedgehog) (pkgs.fetchpatch {
|
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/raw/master/patches/hedgehog-1.0.patch";
|
|
|
|
sha256 = "16gadh1hb74jqvzc9c893sffb1y2vjglblyrqjwp7xfhccq7g8yw";
|
2019-05-09 17:04:47 +02:00
|
|
|
});
|
2019-05-09 17:05:44 +02:00
|
|
|
easytest = self.easytest_0_3;
|
2019-05-09 17:14:50 +02:00
|
|
|
regex-tdfa = appendPatch super.regex-tdfa (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/regex-tdfa-1.2.3.1.patch";
|
|
|
|
sha256 = "1lhas4s2ms666prb475gaw2bqw1v4y8cxi66sy20j727sx7ppjs7";
|
|
|
|
});
|
2019-05-12 10:39:19 +02:00
|
|
|
cassava = appendPatch super.cassava (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/cassava-0.5.1.0.patch";
|
|
|
|
sha256 = "11scwwjp94si90vb8v5yr291g9qwv5l223z8y0g0lc63932bp63g";
|
|
|
|
});
|
2019-05-12 11:30:31 +02:00
|
|
|
shakespeare = appendPatch super.shakespeare (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/shakespeare-2.0.20.patch";
|
|
|
|
sha256 = "1dgx41ylahj4wk8r422aik0d7qdpawdga4gqz905nvlnhqjla58y";
|
|
|
|
});
|
2019-09-16 16:02:56 +02:00
|
|
|
socks = appendPatch (doJailbreak super.socks) (pkgs.fetchpatch {
|
2019-08-29 19:55:08 +02:00
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/socks-0.6.0.patch";
|
|
|
|
sha256 = "1dsqmx0sw62x4glh43c0sbizd2y00v5xybiqadn96v6pmfrap5cp";
|
|
|
|
});
|
2019-05-12 11:36:13 +02:00
|
|
|
lens = appendPatch (doJailbreak super.lens) (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/lens-4.17.1.patch";
|
|
|
|
sha256 = "0w89ipi6dfkx5vlw4a64hh6fd0bm9hg33mwpghliyyxik5jmilv1";
|
|
|
|
});
|
2019-08-29 19:39:16 +02:00
|
|
|
polyparse = appendPatch (doJailbreak super.polyparse) (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/polyparse-1.12.1.patch";
|
|
|
|
sha256 = "01b2gnsq0x4fd9na8zpk6pajym55mbz64hgzawlwxdw0y6681kr5";
|
|
|
|
});
|
2019-08-29 20:01:37 +02:00
|
|
|
foundation = dontCheck super.foundation;
|
2019-08-29 21:00:30 +02:00
|
|
|
memory = overrideCabal (appendPatch super.memory (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/memory-0.14.18.patch";
|
|
|
|
sha256 = "16ar8921s3bi31y1az9zgyg0iaxxc2wvvwqjnl11a17p03wi6b29";
|
|
|
|
})) (drv: {
|
|
|
|
editedCabalFile = null;
|
|
|
|
preConfigure = ''
|
|
|
|
cp -v ${pkgs.fetchurl {url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/memory-0.14.18.cabal"; sha256 = "1325wny0irnq51rz0f4xgkvm01p6n4z5jid2jgpkhjac8a2sdgwl";}} memory.cabal
|
|
|
|
'';
|
|
|
|
});
|
2019-08-29 23:43:23 +02:00
|
|
|
chell = overrideCabal (doJailbreak super.chell) (_drv: {
|
|
|
|
broken = false;
|
|
|
|
});
|
2019-08-30 00:09:51 +02:00
|
|
|
th-expand-syns = doJailbreak super.th-expand-syns;
|
2019-08-30 00:10:13 +02:00
|
|
|
shelly = overrideCabal (appendPatch (doJailbreak super.shelly) (pkgs.fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/shelly-1.8.1.patch";
|
|
|
|
sha256 = "1kglbwrr4ra81v9x3bfsk5l6pyl0my2a1zkr3qjjx7acn0dfpgbc";
|
|
|
|
})) (drv: {
|
|
|
|
editedCabalFile = null;
|
|
|
|
preConfigure = ''
|
|
|
|
cp -v ${pkgs.fetchurl {url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/shelly-1.8.1.cabal"; sha256 = "0crf0m077wky76f5nav2p9q4fa5q4yhv5l4bq9hd073dzdaywhz0";}} shelly.cabal
|
|
|
|
sed -i -e 's/< 1.9,/< 2,/' shelly.cabal # bump time version
|
|
|
|
'';
|
|
|
|
});
|
2019-08-29 23:51:03 +02:00
|
|
|
system-fileio = doJailbreak super.system-fileio;
|
2019-09-16 18:52:28 +02:00
|
|
|
tasty-hedgehog = doJailbreak super.tasty-hedgehog;
|
2019-08-30 00:21:46 +02:00
|
|
|
haskell-src-meta = appendPatch (dontCheck (doJailbreak super.haskell-src-meta)) (pkgs.fetchpatch {
|
2019-09-15 23:03:22 +02:00
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/raw/master/patches/haskell-src-meta-0.8.3.patch";
|
|
|
|
sha256 = "1asl932mibr5y057xx8v1a7n3qy87lcnclsfh8pbxq1m3iwjkxy8";
|
2019-08-30 00:21:46 +02:00
|
|
|
});
|
2019-08-30 00:45:13 +02:00
|
|
|
asn1-encoding = appendPatch (dontCheck (doJailbreak super.asn1-encoding)) (pkgs.fetchpatch {
|
|
|
|
url = "https://gitlab.haskell.org/ghc/head.hackage/raw/master/patches/asn1-encoding-0.9.5.patch";
|
|
|
|
sha256 = "0a3159rnaw6shjzdm46799crd4pxh33s23qy51xa7z6nv5q8wsb5";
|
|
|
|
});
|
2019-08-30 00:48:29 +02:00
|
|
|
tls = self.tls_1_5_1;
|
2019-09-16 17:49:39 +02:00
|
|
|
vault = dontHaddock super.vault;
|
2019-09-16 22:11:40 +02:00
|
|
|
|
2019-09-16 23:52:26 +02:00
|
|
|
# TODO dont fetch patch if https://github.com/simonmar/alex/issues/140 is resolved
|
2019-09-17 11:02:47 +02:00
|
|
|
alex = appendPatch super.alex (pkgs.fetchpatch {
|
2019-09-16 23:52:26 +02:00
|
|
|
url = "https://github.com/simonmar/alex/commit/deaae6eddef5186bfd0e42e2c3ced39e26afa4d6.patch";
|
|
|
|
sha256 = "1v40gmnw4lqyk271wngdwz8whpfdhmza58srbkka8icwwwrck3l5";
|
2019-09-16 22:11:40 +02:00
|
|
|
});
|
2019-04-29 17:51:19 +02:00
|
|
|
}
|