2015-01-07 22:31:32 +03:00
|
|
|
|
{ pkgs }:
|
|
|
|
|
|
2015-01-10 22:26:08 +03:00
|
|
|
|
with import ./lib.nix { inherit pkgs; };
|
2015-01-07 22:31:32 +03:00
|
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
|
|
|
|
# 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 21:31:34 +03:00
|
|
|
|
haskeline = null;
|
2015-01-07 22:31:32 +03: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 21:31:34 +03:00
|
|
|
|
terminfo = null;
|
2015-01-07 22:31:32 +03:00
|
|
|
|
time = null;
|
|
|
|
|
transformers = null;
|
|
|
|
|
unix = null;
|
|
|
|
|
xhtml = null;
|
|
|
|
|
|
2015-01-08 18:52:24 +03:00
|
|
|
|
# mtl 2.2.x needs the latest transformers.
|
|
|
|
|
mtl_2_2_1 = super.mtl_2_2_1.override { transformers = self.transformers_0_4_2_0; };
|
2015-01-13 15:05:41 +03:00
|
|
|
|
|
2015-02-13 15:10:13 +03:00
|
|
|
|
# https://github.com/RyanGlScott/mtl-compat/issues/1
|
|
|
|
|
mtl-compat = markBrokenVersion "0.1.1" super.mtl-compat;
|
|
|
|
|
|
2015-01-13 15:05:41 +03:00
|
|
|
|
# Idris requires mtl 2.2.x.
|
|
|
|
|
idris = overrideCabal (super.idris.overrideScope (self: super: {
|
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // { doCheck = false; });
|
|
|
|
|
transformers = super.transformers_0_4_2_0;
|
|
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-16 21:31:34 +03:00
|
|
|
|
haskeline = self.haskeline_0_7_1_3;
|
2015-01-13 15:05:41 +03:00
|
|
|
|
mtl = super.mtl_2_2_1;
|
|
|
|
|
})) (drv: {
|
|
|
|
|
jailbreak = true; # idris is scared of lens 4.7
|
|
|
|
|
patchPhase = "find . -name '*.hs' -exec sed -i -s 's|-Werror||' {} +";
|
|
|
|
|
}); # warning: "Module ‘Control.Monad.Error’ is deprecated"
|
|
|
|
|
|
2015-01-17 22:48:50 +03:00
|
|
|
|
# Depends on time == 0.1.5, which we don't have.
|
2015-01-23 14:11:10 +03:00
|
|
|
|
HStringTemplate_0_8_1 = dontDistribute super.HStringTemplate_0_8_1;
|
2015-01-17 22:48:50 +03:00
|
|
|
|
|
2015-01-21 01:23:59 +03:00
|
|
|
|
# This is part of bytestring in our compiler.
|
|
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
|
|
|
|
|
2015-01-21 12:22:30 +03: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 14:29:41 +03:00
|
|
|
|
mtl-prelude = self.mtl-prelude_1_0_3;
|
2015-01-21 12:22:30 +03:00
|
|
|
|
|
2015-01-22 19:30:05 +03:00
|
|
|
|
# The test suite pulls in mtl 2.2.x
|
|
|
|
|
command-qq = dontCheck super.command-qq;
|
|
|
|
|
|
2015-01-25 22:57:19 +03:00
|
|
|
|
# Doesn't support GHC < 7.10.x.
|
|
|
|
|
ghc-exactprint = dontDistribute super.ghc-exactprint;
|
|
|
|
|
|
2015-01-27 12:51:40 +03: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 14:29:41 +03:00
|
|
|
|
# Need binary >= 0.7.2, but our compiler has only 0.7.1.0.
|
|
|
|
|
hosc = dontDistribute super.hosc;
|
|
|
|
|
tidal-midi = dontDistribute super.tidal-midi;
|
2015-02-02 14:21:30 +03:00
|
|
|
|
|
2015-02-13 01:34:55 +03:00
|
|
|
|
# Needs mtl 2.2.x due to "plailude".
|
|
|
|
|
clac = dontDistribute super.clac;
|
|
|
|
|
|
2015-01-08 18:52:24 +03:00
|
|
|
|
}
|
2015-01-12 23:14:22 +03:00
|
|
|
|
|
|
|
|
|
// # packages relating to amazonka
|
|
|
|
|
|
|
|
|
|
(let
|
2015-01-23 12:30:00 +03:00
|
|
|
|
Cabal = self.Cabal_1_18_1_6.overrideScope amazonkaEnv;
|
|
|
|
|
amazonkaEnv = self: super: {
|
2015-01-12 23:14:22 +03:00
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // {
|
|
|
|
|
doCheck = false;
|
2015-01-13 02:13:40 +03:00
|
|
|
|
hyperlinkSource = false;
|
2015-01-23 12:30:00 +03:00
|
|
|
|
buildTools = (drv.buildTools or []) ++ [ (
|
2015-01-17 13:44:50 +03:00
|
|
|
|
if pkgs.stdenv.lib.elem drv.pname [
|
2015-01-13 02:13:40 +03:00
|
|
|
|
"Cabal"
|
|
|
|
|
"time"
|
|
|
|
|
"unix"
|
|
|
|
|
"directory"
|
|
|
|
|
"process"
|
|
|
|
|
"jailbreak-cabal"
|
2015-01-23 12:30:00 +03:00
|
|
|
|
] then null else Cabal
|
2015-01-13 02:13:40 +03:00
|
|
|
|
) ];
|
2015-01-12 23:14:22 +03:00
|
|
|
|
});
|
|
|
|
|
mtl = self.mtl_2_2_1;
|
|
|
|
|
transformers = self.transformers_0_4_2_0;
|
2015-01-17 13:44:50 +03:00
|
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-12 23:14:22 +03:00
|
|
|
|
hscolour = super.hscolour;
|
|
|
|
|
time = self.time_1_5_0_1;
|
|
|
|
|
unix = self.unix_2_7_1_0;
|
|
|
|
|
directory = self.directory_1_2_1_0;
|
2015-02-12 22:00:15 +03:00
|
|
|
|
process = overrideCabal self.process_1_2_2_0 (drv: { coreSetup = true; });
|
2015-01-13 02:13:40 +03:00
|
|
|
|
inherit amazonka-core amazonkaEnv amazonka amazonka-cloudwatch;
|
|
|
|
|
};
|
2015-01-23 12:30:00 +03:00
|
|
|
|
amazonka = super.amazonka.overrideScope amazonkaEnv;
|
|
|
|
|
amazonka-cloudwatch = super.amazonka-cloudwatch.overrideScope amazonkaEnv;
|
|
|
|
|
amazonka-core = super.amazonka-core.overrideScope amazonkaEnv;
|
|
|
|
|
amazonka-kms = super.amazonka-kms.overrideScope amazonkaEnv;
|
2015-01-13 02:13:40 +03:00
|
|
|
|
in {
|
2015-01-23 12:30:00 +03:00
|
|
|
|
inherit amazonkaEnv;
|
|
|
|
|
inherit amazonka amazonka-cloudwatch amazonka-core amazonka-kms;
|
2015-01-12 23:14:22 +03:00
|
|
|
|
})
|