2019-04-29 15:51:19 +00: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 09:32:16 +00:00
|
|
|
# Ignore overly restrictive upper version bounds.
|
2019-09-24 15:59:43 +00:00
|
|
|
aeson-diff = doJailbreak super.aeson-diff;
|
2019-05-09 14:52:02 +00:00
|
|
|
async = doJailbreak super.async;
|
2019-08-28 15:25:53 +00:00
|
|
|
cabal-install = doJailbreak super.cabal-install;
|
2019-05-09 14:52:02 +00:00
|
|
|
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
2019-10-06 09:39:18 +00:00
|
|
|
chell = doJailbreak super.chell;
|
2019-05-03 12:05:56 +00:00
|
|
|
cryptohash-sha256 = doJailbreak super.cryptohash-sha256;
|
2019-05-09 14:52:02 +00:00
|
|
|
Diff = dontCheck super.Diff;
|
2019-04-30 09:32:16 +00:00
|
|
|
doctest = doJailbreak super.doctest;
|
2019-05-03 19:38:27 +00:00
|
|
|
hashable = doJailbreak super.hashable;
|
2019-05-09 15:31:20 +00:00
|
|
|
hashable-time = doJailbreak super.hashable-time;
|
2019-08-28 15:25:27 +00:00
|
|
|
hledger-lib = doJailbreak super.hledger-lib; # base >=4.8 && <4.13, easytest >=0.2.1 && <0.3
|
2019-05-09 15:40:20 +00:00
|
|
|
integer-logarithms = doJailbreak super.integer-logarithms;
|
2019-05-09 15:29:25 +00:00
|
|
|
lucid = doJailbreak super.lucid;
|
2019-05-11 09:09:09 +00:00
|
|
|
parallel = doJailbreak super.parallel;
|
2019-05-09 15:43:38 +00:00
|
|
|
quickcheck-instances = doJailbreak super.quickcheck-instances;
|
2019-05-12 08:00:08 +00:00
|
|
|
setlocale = doJailbreak super.setlocale;
|
2019-05-09 14:52:02 +00:00
|
|
|
split = doJailbreak super.split;
|
2019-09-24 15:59:43 +00:00
|
|
|
system-fileio = doJailbreak super.system-fileio;
|
2019-05-09 14:38:24 +00:00
|
|
|
tasty-expected-failure = doJailbreak super.tasty-expected-failure;
|
2019-09-24 15:59:43 +00:00
|
|
|
tasty-hedgehog = doJailbreak super.tasty-hedgehog;
|
2019-05-09 14:52:02 +00:00
|
|
|
test-framework = doJailbreak super.test-framework;
|
2019-09-24 15:59:43 +00:00
|
|
|
th-expand-syns = doJailbreak super.th-expand-syns;
|
2019-10-13 13:06:05 +00:00
|
|
|
# TODO: remove when upstream accepts https://github.com/snapframework/io-streams-haproxy/pull/17
|
|
|
|
io-streams-haproxy = doJailbreak super.io-streams-haproxy; # base >=4.5 && <4.13
|
2019-10-21 14:31:02 +00:00
|
|
|
snap-server = doJailbreak super.snap-server;
|
2019-12-05 20:08:46 +00:00
|
|
|
xmobar = doJailbreak super.xmobar;
|
2019-04-30 09:32:16 +00:00
|
|
|
|
2019-10-06 09:39:18 +00:00
|
|
|
# use latest version to fix the build
|
2019-12-06 19:35:11 +00:00
|
|
|
brick = self.brick_0_50_1;
|
2019-12-05 13:42:59 +00:00
|
|
|
dbus = self.dbus_1_2_11;
|
2019-12-10 09:43:46 +00:00
|
|
|
doctemplates = self.doctemplates_0_8;
|
2019-12-05 13:42:59 +00:00
|
|
|
exact-pi = doJailbreak super.exact-pi;
|
2019-10-18 20:20:26 +00:00
|
|
|
generics-sop = self.generics-sop_0_5_0_0;
|
2019-10-06 09:39:18 +00:00
|
|
|
hackage-db = self.hackage-db_2_1_0;
|
2019-11-29 20:11:26 +00:00
|
|
|
haddock-library = self.haddock-library_1_8_0;
|
2019-12-13 19:23:23 +00:00
|
|
|
haskell-src-meta = self.haskell-src-meta_0_8_5;
|
|
|
|
haskell-src-meta_0_8_5 = dontCheck super.haskell-src-meta_0_8_5;
|
2019-12-05 13:42:59 +00:00
|
|
|
HaTeX = self.HaTeX_3_22_0_0;
|
2019-11-29 20:11:26 +00:00
|
|
|
HsYAML = self.HsYAML_0_2_1_0;
|
2019-12-05 13:42:59 +00:00
|
|
|
json-autotype = doJailbreak super.json-autotype;
|
2019-10-06 09:39:18 +00:00
|
|
|
lens = self.lens_4_18_1;
|
|
|
|
memory = self.memory_0_15_0;
|
|
|
|
microlens = self.microlens_0_4_11_2;
|
2019-12-05 13:42:59 +00:00
|
|
|
microlens-ghc = self.microlens-ghc_0_4_11_1;
|
|
|
|
microlens-mtl = self.microlens-mtl_0_2_0_1;
|
|
|
|
microlens-platform = self.microlens-platform_0_4_0;
|
|
|
|
microlens-th = self.microlens-th_0_4_3_2;
|
|
|
|
network = self.network_3_1_1_1;
|
2019-10-06 09:39:18 +00:00
|
|
|
optparse-applicative = self.optparse-applicative_0_15_1_0;
|
2019-12-26 11:49:12 +00:00
|
|
|
pandoc = self.pandoc_2_9_1;
|
2019-11-29 20:11:26 +00:00
|
|
|
pandoc-types = self.pandoc-types_1_20;
|
2019-12-03 10:44:49 +00:00
|
|
|
prettyprinter = self.prettyprinter_1_5_1;
|
2019-10-06 09:39:18 +00:00
|
|
|
primitive = dontCheck super.primitive_0_7_0_0; # evaluating the test suite gives an infinite recursion
|
|
|
|
regex-base = self.regex-base_0_94_0_0;
|
2019-12-05 13:42:59 +00:00
|
|
|
regex-compat = self.regex-compat_0_95_2_0;
|
2019-10-06 09:39:18 +00:00
|
|
|
regex-pcre-builtin = self.regex-pcre-builtin_0_95_1_1_8_43;
|
|
|
|
regex-posix = self.regex-posix_0_96_0_0;
|
2019-12-06 10:08:29 +00:00
|
|
|
regex-tdfa = self.regex-tdfa_1_3_1_0;
|
2019-10-06 09:39:18 +00:00
|
|
|
shelly = self.shelly_1_9_0;
|
2019-12-05 20:08:46 +00:00
|
|
|
singletons = self.singletons_2_6;
|
2019-11-29 20:11:26 +00:00
|
|
|
skylighting = self.skylighting_0_8_3;
|
|
|
|
skylighting-core = self.skylighting-core_0_8_3;
|
2019-10-18 20:20:26 +00:00
|
|
|
sop-core = self.sop-core_0_5_0_0;
|
2019-11-29 20:11:26 +00:00
|
|
|
texmath = self.texmath_0_12;
|
2019-12-05 13:42:59 +00:00
|
|
|
th-desugar = self.th-desugar_1_10;
|
2019-10-17 19:35:31 +00:00
|
|
|
tls = self.tls_1_5_2;
|
2019-11-29 20:11:26 +00:00
|
|
|
trifecta = self.trifecta_2_1;
|
2019-12-06 10:26:28 +00:00
|
|
|
vty = self.vty_5_26;
|
2019-12-05 20:08:46 +00:00
|
|
|
xml-conduit = overrideCabal super.xml-conduit (drv: { version = "1.9.0.0"; sha256 = "1p57v127882rxvvmwjmvnqdmk3x2wg1z4d8y03849h0xaz1vid0w"; });
|
2019-10-06 09:39:18 +00:00
|
|
|
xmonad-contrib = self.xmonad-contrib_0_16;
|
|
|
|
|
2019-04-30 09:32:16 +00:00
|
|
|
# These packages don't work and need patching and/or an update.
|
2019-05-03 19:38:27 +00:00
|
|
|
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-08-29 17:39:16 +00: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 18:01:37 +00:00
|
|
|
foundation = dontCheck super.foundation;
|
2019-09-16 15:49:39 +00:00
|
|
|
vault = dontHaddock super.vault;
|
2019-09-16 20:11:40 +00:00
|
|
|
|
2019-10-21 14:31:02 +00:00
|
|
|
# https://github.com/snapframework/snap-core/issues/288
|
|
|
|
snap-core = overrideCabal super.snap-core (drv: { prePatch = "substituteInPlace src/Snap/Internal/Core.hs --replace 'fail = Fail.fail' ''"; });
|
|
|
|
# needs a release
|
|
|
|
json = overrideCabal super.json (drv: { prePatch = "substituteInPlace json.cabal --replace '4.13' '4.14'"; patches = [(
|
|
|
|
pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/GaloisInc/json/commit/9d36ca5d865be7e4b2126b68a444b901941d2492.patch";
|
|
|
|
sha256 = "0vyi5nbivkqg6zngq7rb3wwcj9043m4hmyk155nrcddl8j2smfzv";
|
|
|
|
}
|
|
|
|
)]; });
|
2019-09-18 15:13:27 +00:00
|
|
|
|
2019-09-18 15:13:27 +00:00
|
|
|
# Upstream ships a broken Setup.hs file.
|
|
|
|
csv = overrideCabal super.csv (drv: { prePatch = "rm Setup.hs"; });
|
|
|
|
|
2019-09-24 16:14:56 +00:00
|
|
|
# mark broken packages
|
2019-09-24 16:30:55 +00:00
|
|
|
bencode = markBrokenVersion "0.6.0.0" super.bencode;
|
2019-09-24 16:14:56 +00:00
|
|
|
easytest = markBroken super.easytest;
|
|
|
|
easytest_0_3 = markBroken super.easytest_0_3;
|
|
|
|
haskell-src = markBrokenVersion "1.0.3.0" super.haskell-src;
|
|
|
|
|
2019-04-29 15:51:19 +00:00
|
|
|
}
|