2015-01-07 19:31:32 +00:00
|
|
|
|
{ pkgs }:
|
|
|
|
|
|
2015-01-10 19:26:08 +00:00
|
|
|
|
with import ./lib.nix { inherit pkgs; };
|
2015-01-07 19:31:32 +00:00
|
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
2015-03-09 19:11:23 +00:00
|
|
|
|
# Suitable LLVM version.
|
|
|
|
|
llvmPackages = pkgs.llvmPackages_34;
|
|
|
|
|
|
2015-01-07 19:31:32 +00: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 18:31:34 +00:00
|
|
|
|
haskeline = null;
|
2015-01-07 19:31:32 +00: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 18:31:34 +00:00
|
|
|
|
terminfo = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
|
time = null;
|
|
|
|
|
transformers = null;
|
|
|
|
|
unix = null;
|
|
|
|
|
xhtml = null;
|
|
|
|
|
|
2015-01-08 15:52:24 +00:00
|
|
|
|
# mtl 2.2.x needs the latest transformers.
|
2015-03-09 10:42:37 +00:00
|
|
|
|
mtl_2_2_1 = super.mtl_2_2_1.override { transformers = self.transformers_0_4_3_0; };
|
2015-01-13 12:05:41 +00:00
|
|
|
|
|
2015-02-15 21:41:33 +00:00
|
|
|
|
# Configure build for mtl 2.1.x.
|
|
|
|
|
mtl-compat = addBuildDepend (enableCabalFlag super.mtl-compat "two-point-one") self.transformers-compat;
|
2015-02-13 12:10:13 +00:00
|
|
|
|
|
2015-04-01 00:07:43 +01:00
|
|
|
|
# haddock-api 2.16 requires ghc>=7.10
|
|
|
|
|
haddock-api = super.haddock-api_2_15_0_2;
|
|
|
|
|
|
2015-01-13 12:05:41 +00:00
|
|
|
|
# Idris requires mtl 2.2.x.
|
|
|
|
|
idris = overrideCabal (super.idris.overrideScope (self: super: {
|
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // { doCheck = false; });
|
2015-03-31 12:53:36 +01:00
|
|
|
|
blaze-markup = self.blaze-markup_0_6_2_0;
|
|
|
|
|
blaze-html = self.blaze-html_0_7_0_3;
|
2015-03-24 14:11:46 +00:00
|
|
|
|
haskeline = self.haskeline_0_7_2_1;
|
2015-04-06 16:09:33 +01:00
|
|
|
|
lens = self.lens_4_7_0_1;
|
2015-01-13 12:05:41 +00:00
|
|
|
|
mtl = super.mtl_2_2_1;
|
2015-03-31 12:53:36 +01:00
|
|
|
|
transformers = super.transformers_0_4_3_0;
|
|
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-13 12:05:41 +00:00
|
|
|
|
})) (drv: {
|
|
|
|
|
patchPhase = "find . -name '*.hs' -exec sed -i -s 's|-Werror||' {} +";
|
|
|
|
|
}); # warning: "Module ‘Control.Monad.Error’ is deprecated"
|
|
|
|
|
|
2015-01-17 19:48:50 +00:00
|
|
|
|
# Depends on time == 0.1.5, which we don't have.
|
2015-03-24 12:45:42 +00:00
|
|
|
|
HStringTemplate_0_8_3 = dontDistribute super.HStringTemplate_0_8_3;
|
2015-01-17 19:48:50 +00:00
|
|
|
|
|
2015-01-20 22:23:59 +00:00
|
|
|
|
# This is part of bytestring in our compiler.
|
|
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
|
|
|
|
|
2015-01-21 09:22:30 +00: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 11:29:41 +00:00
|
|
|
|
mtl-prelude = self.mtl-prelude_1_0_3;
|
2015-04-06 16:25:02 +01:00
|
|
|
|
equivalence = super.equivalence_0_2_5; # required by Agda
|
2015-01-21 09:22:30 +00:00
|
|
|
|
|
2015-04-09 14:21:09 +01: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;
|
|
|
|
|
haskeline = self.haskeline_0_7_2_1;
|
|
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
|
|
|
|
})) (drv: {});
|
|
|
|
|
|
2015-01-22 16:30:05 +00:00
|
|
|
|
# The test suite pulls in mtl 2.2.x
|
|
|
|
|
command-qq = dontCheck super.command-qq;
|
|
|
|
|
|
2015-01-25 19:57:19 +00:00
|
|
|
|
# Doesn't support GHC < 7.10.x.
|
2015-04-01 15:43:29 +01:00
|
|
|
|
bound-gen = dontDistribute super.bound-gen;
|
2015-01-25 19:57:19 +00:00
|
|
|
|
ghc-exactprint = dontDistribute super.ghc-exactprint;
|
2015-04-01 15:43:29 +01:00
|
|
|
|
ghc-typelits-natnormalise = dontDistribute super.ghc-typelits-natnormalise;
|
2015-01-25 19:57:19 +00:00
|
|
|
|
|
2015-01-27 09:51:40 +00:00
|
|
|
|
# Newer versions require transformers 0.4.x.
|
|
|
|
|
seqid = super.seqid_0_1_0;
|
|
|
|
|
seqid-streams = super.seqid-streams_0_1_0;
|
|
|
|
|
|
2015-02-06 11:29:41 +00:00
|
|
|
|
# Need binary >= 0.7.2, but our compiler has only 0.7.1.0.
|
2015-03-18 10:06:42 +00:00
|
|
|
|
hosc = super.hosc.overrideScope (self: super: { binary = self.binary_0_7_4_0; });
|
|
|
|
|
tidal-midi = super.tidal-midi.overrideScope (self: super: { binary = self.binary_0_7_4_0; });
|
2015-02-02 11:21:30 +00:00
|
|
|
|
|
2015-02-22 16:43:03 +00:00
|
|
|
|
# These packages need mtl 2.2.x directly or indirectly via dependencies.
|
2015-03-14 13:09:20 +00:00
|
|
|
|
amazonka = markBroken super.amazonka;
|
2015-02-22 16:43:03 +00:00
|
|
|
|
apiary-purescript = markBroken super.apiary-purescript;
|
2015-03-06 13:10:17 +00:00
|
|
|
|
clac = dontDistribute super.clac;
|
2015-02-22 16:43:03 +00:00
|
|
|
|
highlighter2 = markBroken super.highlighter2;
|
2015-02-16 09:42:11 +00:00
|
|
|
|
hypher = markBroken super.hypher;
|
2015-03-06 15:03:31 +00:00
|
|
|
|
miniforth = markBroken super.miniforth;
|
2015-03-04 13:37:05 +00:00
|
|
|
|
xhb-atom-cache = markBroken super.xhb-atom-cache;
|
|
|
|
|
xhb-ewmh = markBroken super.xhb-ewmh;
|
2015-02-22 16:43:03 +00:00
|
|
|
|
yesod-purescript = markBroken super.yesod-purescript;
|
|
|
|
|
yet-another-logger = markBroken super.yet-another-logger;
|
2015-02-16 09:42:11 +00:00
|
|
|
|
|
2015-02-22 16:26:50 +00:00
|
|
|
|
# https://github.com/frosch03/arrowVHDL/issues/2
|
|
|
|
|
ArrowVHDL = markBroken super.ArrowVHDL;
|
|
|
|
|
|
2015-03-03 13:07:11 +00:00
|
|
|
|
# https://ghc.haskell.org/trac/ghc/ticket/9625
|
|
|
|
|
wai-middleware-preprocessor = dontCheck super.wai-middleware-preprocessor;
|
2015-03-04 13:37:05 +00:00
|
|
|
|
incremental-computing = dontCheck super.incremental-computing;
|
2015-03-03 13:07:11 +00:00
|
|
|
|
|
2015-04-06 20:23:40 +01:00
|
|
|
|
# Newer versions require base > 4.7
|
|
|
|
|
gloss = super.gloss_1_9_2_1;
|
|
|
|
|
|
2015-03-31 14:30:28 +01: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-04-16 11:25:34 +01:00
|
|
|
|
# Fix evaluation in GHC >=7.8: https://github.com/lambdabot/lambdabot/issues/116
|
|
|
|
|
lambdabot = appendPatch super.lambdabot ./lambdabot-fix-ghc78.patch;
|
|
|
|
|
|
2015-03-30 02:48:48 +01:00
|
|
|
|
# Needs hashable on pre 7.10.x compilers.
|
|
|
|
|
nats = addBuildDepend super.nats self.hashable;
|
|
|
|
|
|
2015-01-08 15:52:24 +00:00
|
|
|
|
}
|