2018-01-17 02:57:27 +01:00
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
2018-07-16 10:55:17 +02:00
|
|
|
# This compiler version needs llvm 5.x.
|
|
|
|
llvmPackages = pkgs.llvmPackages_5;
|
2018-01-17 02:57:27 +01:00
|
|
|
|
|
|
|
# Disable GHC 8.4.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;
|
2019-02-13 13:28:10 +01:00
|
|
|
ghc-heap = null;
|
2018-01-17 02:57:27 +01:00
|
|
|
ghc-prim = null;
|
2018-03-29 11:00:28 +02:00
|
|
|
ghci = null;
|
2018-01-17 02:57:27 +01:00
|
|
|
haskeline = null;
|
|
|
|
hpc = null;
|
|
|
|
integer-gmp = null;
|
|
|
|
mtl = null;
|
|
|
|
parsec = null;
|
|
|
|
pretty = null;
|
|
|
|
process = null;
|
2018-03-29 11:00:28 +02:00
|
|
|
rts = null;
|
2018-01-17 02:57:27 +01:00
|
|
|
stm = null;
|
|
|
|
template-haskell = null;
|
|
|
|
terminfo = null;
|
|
|
|
text = null;
|
|
|
|
time = null;
|
|
|
|
transformers = null;
|
|
|
|
unix = null;
|
|
|
|
xhtml = null;
|
2018-01-29 13:50:03 +01:00
|
|
|
|
2020-04-03 21:03:40 +02:00
|
|
|
# Needs Cabal 3.2.x.
|
2020-10-30 14:53:45 +01:00
|
|
|
cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_3_2_1_0; });
|
|
|
|
jailbreak-cabal = super.jailbreak-cabal.override { Cabal = self.Cabal_3_2_1_0; };
|
2019-08-28 17:45:06 +02:00
|
|
|
|
2019-01-10 13:07:14 +01:00
|
|
|
# Restricts aeson to <1.4
|
|
|
|
# https://github.com/purescript/purescript/pull/3537
|
|
|
|
purescript = doJailbreak super.purescript;
|
|
|
|
|
2018-05-20 19:24:28 +02:00
|
|
|
# https://github.com/jcristovao/enclosed-exceptions/issues/12
|
|
|
|
enclosed-exceptions = dontCheck super.enclosed-exceptions;
|
|
|
|
|
2018-07-16 10:10:08 +02:00
|
|
|
# https://github.com/jaor/xmobar/issues/356
|
|
|
|
xmobar = super.xmobar.overrideScope (self: super: { hinotify = self.hinotify_0_3_9; });
|
2018-07-10 12:50:12 +02:00
|
|
|
hinotify_0_3_9 = dontCheck (doJailbreak super.hinotify_0_3_9); # allow async 2.2.x
|
2018-07-10 01:23:50 +02:00
|
|
|
|
2018-08-17 15:36:53 +02:00
|
|
|
# Reduction stack overflow; size = 38
|
|
|
|
# https://github.com/jystic/hadoop-tools/issues/31
|
|
|
|
hadoop-rpc =
|
|
|
|
let patch = pkgs.fetchpatch
|
2020-04-01 03:11:51 +02:00
|
|
|
{ url = "https://github.com/shlevy/hadoop-tools/commit/f03a46cd15ce3796932c3382e48bcbb04a6ee102.patch";
|
2018-08-17 15:36:53 +02:00
|
|
|
sha256 = "09ls54zy6gx84fmzwgvx18ssgm740cwq6ds70p0p125phi54agcp";
|
|
|
|
stripLen = 1;
|
|
|
|
};
|
|
|
|
in appendPatch super.hadoop-rpc patch;
|
|
|
|
|
2018-10-22 13:52:22 +02:00
|
|
|
# stack-1.9.1 needs Cabal 2.4.x, a recent version of hpack, and a non-recent
|
|
|
|
# version of yaml. Go figure. We avoid overrideScope here because using it to
|
|
|
|
# change Cabal would re-compile every single package instead of just those
|
|
|
|
# that have it as an actual library dependency. The explicit overrides are
|
|
|
|
# more verbose but friendlier for Hydra.
|
|
|
|
stack = (doJailbreak super.stack).override {
|
2018-11-26 11:19:28 +01:00
|
|
|
Cabal = self.Cabal_2_4_1_0;
|
2019-02-13 13:28:10 +01:00
|
|
|
hpack = self.hpack.override { Cabal = self.Cabal_2_4_1_0; };
|
2018-11-26 11:19:28 +01:00
|
|
|
hackage-security = self.hackage-security.override { Cabal = self.Cabal_2_4_1_0; };
|
2018-10-22 13:52:22 +02:00
|
|
|
};
|
2018-10-19 11:50:15 +02:00
|
|
|
|
2019-02-24 10:06:07 +01:00
|
|
|
# Older GHC versions need these additional dependencies.
|
2019-01-30 10:44:42 +01:00
|
|
|
aeson = addBuildDepend super.aeson self.contravariant;
|
2019-02-24 10:06:07 +01:00
|
|
|
base-compat-batteries = addBuildDepend super.base-compat-batteries self.contravariant;
|
2019-01-30 10:44:42 +01:00
|
|
|
|
2019-08-28 17:38:36 +02:00
|
|
|
# Newer versions don't compile.
|
|
|
|
resolv = self.resolv_0_1_1_2;
|
|
|
|
|
2020-03-20 20:46:21 +01:00
|
|
|
# The old Haddock cannot process the newer documentation syntax.
|
|
|
|
fast-logger = dontHaddock super.fast-logger;
|
|
|
|
|
2020-04-17 20:41:50 +02:00
|
|
|
# ghc versions prior to 8.8.x needs additional dependency to compile successfully.
|
|
|
|
ghc-lib-parser-ex = addBuildDepend super.ghc-lib-parser-ex self.ghc-lib-parser;
|
|
|
|
|
2018-01-17 02:57:27 +01:00
|
|
|
}
|