2017-08-01 18:44:08 +02:00
|
|
|
{ pkgs, haskellLib }:
|
2015-01-07 20:31:32 +01:00
|
|
|
|
2017-08-01 18:44:08 +02:00
|
|
|
with haskellLib;
|
2015-01-07 20:31:32 +01:00
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
2015-03-09 20:11:23 +01:00
|
|
|
# Suitable LLVM version.
|
|
|
|
llvmPackages = pkgs.llvmPackages_34;
|
|
|
|
|
2015-01-07 20:31:32 +01:00
|
|
|
# Disable GHC 7.8.x core libraries.
|
|
|
|
array = null;
|
|
|
|
base = null;
|
|
|
|
binary = null;
|
|
|
|
bin-package-db = null;
|
|
|
|
bytestring = null;
|
|
|
|
Cabal = null;
|
|
|
|
containers = null;
|
|
|
|
deepseq = null;
|
|
|
|
directory = null;
|
|
|
|
filepath = null;
|
|
|
|
ghc-prim = null;
|
2015-01-16 19:31:34 +01:00
|
|
|
haskeline = null;
|
2015-01-07 20:31:32 +01:00
|
|
|
haskell2010 = null;
|
|
|
|
haskell98 = null;
|
|
|
|
hoopl = null;
|
|
|
|
hpc = null;
|
|
|
|
integer-gmp = null;
|
|
|
|
old-locale = null;
|
|
|
|
old-time = null;
|
|
|
|
pretty = null;
|
|
|
|
process = null;
|
|
|
|
rts = null;
|
|
|
|
template-haskell = null;
|
2015-01-16 19:31:34 +01:00
|
|
|
terminfo = null;
|
2015-01-07 20:31:32 +01:00
|
|
|
time = null;
|
|
|
|
transformers = null;
|
|
|
|
unix = null;
|
|
|
|
xhtml = null;
|
|
|
|
|
2017-09-10 10:45:33 +02:00
|
|
|
# Requires ghc 8.2
|
|
|
|
ghc-proofs = dontDistribute super.ghc-proofs;
|
|
|
|
|
2015-05-20 12:13:13 +02:00
|
|
|
# https://github.com/peti/jailbreak-cabal/issues/9
|
2016-10-19 15:11:51 +02:00
|
|
|
jailbreak-cabal = super.jailbreak-cabal.override { Cabal = self.Cabal_1_20_0_4; };
|
2015-05-20 12:13:13 +02:00
|
|
|
|
2015-01-08 16:52:24 +01:00
|
|
|
# mtl 2.2.x needs the latest transformers.
|
2015-04-17 23:18:04 +02:00
|
|
|
mtl_2_2_1 = super.mtl.override { transformers = self.transformers_0_4_3_0; };
|
2015-01-13 13:05:41 +01:00
|
|
|
|
2015-04-17 23:18:04 +02:00
|
|
|
# Configure mtl 2.1.x.
|
|
|
|
mtl = self.mtl_2_1_3_1;
|
2015-04-18 01:43:40 +02:00
|
|
|
transformers-compat = addBuildDepend (enableCabalFlag super.transformers-compat "three") self.mtl;
|
2015-02-15 22:41:33 +01:00
|
|
|
mtl-compat = addBuildDepend (enableCabalFlag super.mtl-compat "two-point-one") self.transformers-compat;
|
2015-02-13 13:10:13 +01:00
|
|
|
|
2015-04-01 01:07:43 +02:00
|
|
|
# haddock-api 2.16 requires ghc>=7.10
|
|
|
|
haddock-api = super.haddock-api_2_15_0_2;
|
|
|
|
|
2015-01-20 23:23:59 +01:00
|
|
|
# This is part of bytestring in our compiler.
|
2015-12-31 18:26:26 +01:00
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
2015-01-20 23:23:59 +01:00
|
|
|
|
2015-01-21 10:22:30 +01:00
|
|
|
# Won't compile against mtl 2.1.x.
|
|
|
|
imports = super.imports.override { mtl = self.mtl_2_2_1; };
|
|
|
|
|
|
|
|
# Newer versions require mtl 2.2.x.
|
2015-02-06 12:29:41 +01:00
|
|
|
mtl-prelude = self.mtl-prelude_1_0_3;
|
2015-01-21 10:22:30 +01:00
|
|
|
|
2015-04-09 15:21:09 +02:00
|
|
|
# purescript requires mtl 2.2.x.
|
|
|
|
purescript = overrideCabal (super.purescript.overrideScope (self: super: {
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // { doCheck = false; });
|
|
|
|
mtl = super.mtl_2_2_1;
|
|
|
|
transformers = super.transformers_0_4_3_0;
|
2017-03-05 16:36:47 +01:00
|
|
|
haskeline = self.haskeline_0_7_3_1;
|
2015-04-09 15:21:09 +02:00
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
|
|
|
})) (drv: {});
|
|
|
|
|
2015-01-22 17:30:05 +01:00
|
|
|
# The test suite pulls in mtl 2.2.x
|
|
|
|
command-qq = dontCheck super.command-qq;
|
|
|
|
|
2015-01-25 20:57:19 +01:00
|
|
|
# Doesn't support GHC < 7.10.x.
|
2015-04-01 16:43:29 +02:00
|
|
|
bound-gen = dontDistribute super.bound-gen;
|
2015-01-25 20:57:19 +01:00
|
|
|
ghc-exactprint = dontDistribute super.ghc-exactprint;
|
2015-04-01 16:43:29 +02:00
|
|
|
ghc-typelits-natnormalise = dontDistribute super.ghc-typelits-natnormalise;
|
2015-01-25 20:57:19 +01:00
|
|
|
|
2015-05-19 15:14:14 +02:00
|
|
|
# Needs directory >= 1.2.2.0.
|
|
|
|
idris = markBroken super.idris;
|
|
|
|
|
2015-01-27 10:51:40 +01:00
|
|
|
# Newer versions require transformers 0.4.x.
|
|
|
|
seqid = super.seqid_0_1_0;
|
|
|
|
seqid-streams = super.seqid-streams_0_1_0;
|
|
|
|
|
2015-02-22 17:43:03 +01:00
|
|
|
# These packages need mtl 2.2.x directly or indirectly via dependencies.
|
2015-03-14 14:09:20 +01:00
|
|
|
amazonka = markBroken super.amazonka;
|
2015-02-22 17:43:03 +01:00
|
|
|
apiary-purescript = markBroken super.apiary-purescript;
|
2015-03-06 14:10:17 +01:00
|
|
|
clac = dontDistribute super.clac;
|
2015-02-22 17:43:03 +01:00
|
|
|
highlighter2 = markBroken super.highlighter2;
|
2015-02-16 10:42:11 +01:00
|
|
|
hypher = markBroken super.hypher;
|
2015-03-06 16:03:31 +01:00
|
|
|
miniforth = markBroken super.miniforth;
|
2015-03-04 14:37:05 +01:00
|
|
|
xhb-atom-cache = markBroken super.xhb-atom-cache;
|
|
|
|
xhb-ewmh = markBroken super.xhb-ewmh;
|
2015-02-22 17:43:03 +01:00
|
|
|
yesod-purescript = markBroken super.yesod-purescript;
|
|
|
|
yet-another-logger = markBroken super.yet-another-logger;
|
2015-02-16 10:42:11 +01:00
|
|
|
|
2015-02-22 17:26:50 +01:00
|
|
|
# https://github.com/frosch03/arrowVHDL/issues/2
|
|
|
|
ArrowVHDL = markBroken super.ArrowVHDL;
|
|
|
|
|
2015-03-03 14:07:11 +01:00
|
|
|
# https://ghc.haskell.org/trac/ghc/ticket/9625
|
|
|
|
wai-middleware-preprocessor = dontCheck super.wai-middleware-preprocessor;
|
2015-03-04 14:37:05 +01:00
|
|
|
incremental-computing = dontCheck super.incremental-computing;
|
2015-03-03 14:07:11 +01:00
|
|
|
|
2015-04-06 21:23:40 +02:00
|
|
|
# Newer versions require base > 4.7
|
|
|
|
gloss = super.gloss_1_9_2_1;
|
|
|
|
|
2015-03-31 15:30:28 +02:00
|
|
|
# Workaround for a workaround, see comment for "ghcjs" flag.
|
|
|
|
jsaddle = let jsaddle' = disableCabalFlag super.jsaddle "ghcjs";
|
|
|
|
in addBuildDepends jsaddle' [ self.glib self.gtk3 self.webkitgtk3
|
|
|
|
self.webkitgtk3-javascriptcore ];
|
|
|
|
|
2015-03-30 03:48:48 +02:00
|
|
|
# Needs hashable on pre 7.10.x compilers.
|
2016-01-26 14:01:40 +01:00
|
|
|
nats_1 = addBuildDepend super.nats_1 self.hashable;
|
2015-03-30 03:48:48 +02:00
|
|
|
nats = addBuildDepend super.nats self.hashable;
|
|
|
|
|
2015-04-24 17:51:54 +02:00
|
|
|
# needs mtl-compat to build with mtl 2.1.x
|
|
|
|
cgi = addBuildDepend super.cgi self.mtl-compat;
|
|
|
|
|
2015-05-09 11:49:54 +02:00
|
|
|
# https://github.com/magthe/sandi/issues/7
|
|
|
|
sandi = overrideCabal super.sandi (drv: {
|
2015-08-06 14:10:48 +02:00
|
|
|
postPatch = "sed -i -e 's|base ==4.8.*,|base,|' sandi.cabal";
|
|
|
|
});
|
2015-05-09 11:49:54 +02:00
|
|
|
|
2015-06-04 13:20:44 +02:00
|
|
|
# Overriding mtl 2.2.x is fine here because ghc-events is an stand-alone executable.
|
|
|
|
ghc-events = super.ghc-events.override { mtl = self.mtl_2_2_1; };
|
|
|
|
|
2015-09-16 21:18:23 +02:00
|
|
|
# The network library is required in configurations that don't have network-uri.
|
|
|
|
hxt = addBuildDepend super.hxt self.network;
|
|
|
|
hxt_9_3_1_7 = addBuildDepend super.hxt_9_3_1_7 self.network;
|
|
|
|
hxt_9_3_1_10 = addBuildDepend super.hxt_9_3_1_10 self.network;
|
|
|
|
hxt_9_3_1_12 = addBuildDepend super.hxt_9_3_1_12 self.network;
|
2015-09-17 10:42:16 +02:00
|
|
|
xss-sanitize = addBuildDepend super.xss-sanitize self.network;
|
|
|
|
xss-sanitize_0_3_5_4 = addBuildDepend super.xss-sanitize_0_3_5_4 self.network;
|
|
|
|
xss-sanitize_0_3_5_5 = addBuildDepend super.xss-sanitize_0_3_5_5 self.network;
|
2015-09-16 21:18:23 +02:00
|
|
|
|
2015-10-13 20:00:26 +02:00
|
|
|
# Needs void on pre 7.10.x compilers.
|
|
|
|
conduit = addBuildDepend super.conduit self.void;
|
2016-03-16 08:37:25 +01:00
|
|
|
conduit_1_2_5 = addBuildDepend super.conduit_1_2_5 self.void;
|
2015-10-13 20:00:26 +02:00
|
|
|
|
2017-03-29 16:03:27 +02:00
|
|
|
# Breaks a dependency cycle between QuickCheck and semigroups
|
|
|
|
hashable = dontCheck super.hashable;
|
|
|
|
unordered-containers = dontCheck super.unordered-containers;
|
|
|
|
|
2017-06-22 20:42:25 +02:00
|
|
|
# Needs additional inputs on old compilers.
|
2017-08-23 14:30:10 +02:00
|
|
|
semigroups = addBuildDepends (dontCheck super.semigroups) (with self; [nats tagged unordered-containers]);
|
2016-09-09 13:53:23 +02:00
|
|
|
lens = addBuildDepends super.lens (with self; [doctest generic-deriving nats simple-reflect]);
|
2017-08-23 14:18:44 +02:00
|
|
|
distributive = addBuildDepend (dontCheck super.distributive) self.semigroups;
|
2017-03-29 16:03:27 +02:00
|
|
|
QuickCheck = addBuildDepends super.QuickCheck (with self; [nats semigroups]);
|
2017-03-29 16:11:38 +02:00
|
|
|
void = addBuildDepends super.void (with self; [hashable semigroups]);
|
2017-06-22 20:42:25 +02:00
|
|
|
optparse-applicative = addBuildDepend super.optparse-applicative self.semigroups;
|
2017-08-23 14:23:17 +02:00
|
|
|
vector = addBuildDepend super.vector self.semigroups;
|
2015-12-31 12:27:26 +01:00
|
|
|
|
2016-07-20 22:00:35 +02:00
|
|
|
# Haddock doesn't cope with the new markup.
|
|
|
|
bifunctors = dontHaddock super.bifunctors;
|
|
|
|
|
2017-03-29 16:09:11 +02:00
|
|
|
# extra-test: <stdout>: hFlush: invalid argument (Bad file descriptor)
|
|
|
|
extra = dontCheck super.extra;
|
|
|
|
|
2017-08-23 14:28:01 +02:00
|
|
|
# The test suite requires Cabal 1.24.x or later to compile.
|
|
|
|
comonad = dontCheck super.comonad;
|
2017-08-23 16:06:40 +02:00
|
|
|
semigroupoids = dontCheck super.semigroupoids;
|
2017-08-23 14:28:01 +02:00
|
|
|
|
2017-09-07 10:47:47 +02:00
|
|
|
# https://github.com/simonmar/happy/issues/103
|
|
|
|
happy = super.happy.override { mtl = self.mtl_2_2_1; };
|
|
|
|
|
2015-01-08 16:52:24 +01:00
|
|
|
}
|