2015-01-07 20:31:32 +01:00
|
|
|
|
{ pkgs }:
|
|
|
|
|
|
2015-01-10 20:26:08 +01:00
|
|
|
|
with import ./lib.nix { inherit pkgs; };
|
2015-01-07 20:31:32 +01: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 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;
|
|
|
|
|
|
2015-01-08 16:52:24 +01: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 13:05:41 +01: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 19:31:34 +01:00
|
|
|
|
haskeline = self.haskeline_0_7_1_3;
|
2015-01-13 13:05:41 +01: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 20:48:50 +01:00
|
|
|
|
# Depends on time == 0.1.5, which we don't have.
|
|
|
|
|
HStringTemplate_0_8 = dontDistribute super.HStringTemplate_0_8;
|
|
|
|
|
|
2015-01-20 23:23:59 +01:00
|
|
|
|
# This is part of bytestring in our compiler.
|
|
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
|
|
|
|
|
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.
|
|
|
|
|
mtl-prelude = self.mtl-prelude_1_0_2;
|
|
|
|
|
|
2015-01-08 16:52:24 +01:00
|
|
|
|
}
|
2015-01-12 21:14:22 +01:00
|
|
|
|
|
|
|
|
|
// # packages relating to amazonka
|
|
|
|
|
|
|
|
|
|
(let
|
|
|
|
|
amazonkaEnv = let self_ = self; in self: super: {
|
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // {
|
|
|
|
|
doCheck = false;
|
2015-01-13 00:13:40 +01:00
|
|
|
|
hyperlinkSource = false;
|
|
|
|
|
extraLibraries = (drv.extraLibraries or []) ++ [ (
|
2015-01-17 11:44:50 +01:00
|
|
|
|
if pkgs.stdenv.lib.elem drv.pname [
|
2015-01-13 00:13:40 +01:00
|
|
|
|
"Cabal"
|
|
|
|
|
"time"
|
|
|
|
|
"unix"
|
|
|
|
|
"directory"
|
|
|
|
|
"process"
|
|
|
|
|
"jailbreak-cabal"
|
|
|
|
|
] then null else self.Cabal_1_18_1_6
|
|
|
|
|
) ];
|
2015-01-12 21:14:22 +01:00
|
|
|
|
});
|
|
|
|
|
mtl = self.mtl_2_2_1;
|
|
|
|
|
transformers = self.transformers_0_4_2_0;
|
2015-01-17 11:44:50 +01:00
|
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-12 21:14:22 +01: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-01-17 11:44:50 +01:00
|
|
|
|
process = overrideCabal self.process_1_2_1_0 (drv: { coreSetup = true; });
|
2015-01-13 00:13:40 +01:00
|
|
|
|
inherit amazonka-core amazonkaEnv amazonka amazonka-cloudwatch;
|
|
|
|
|
};
|
2015-01-12 21:14:22 +01:00
|
|
|
|
Cabal = self.Cabal_1_18_1_6.overrideScope amazonkaEnv;
|
|
|
|
|
amazonka-core =
|
|
|
|
|
overrideCabal (super.amazonka-core.overrideScope amazonkaEnv) (drv: {
|
|
|
|
|
# https://github.com/brendanhay/amazonka/pull/57
|
|
|
|
|
prePatch = "sed -i 's|nats >= 0.1.3 && < 1|nats|' amazonka-core.cabal";
|
|
|
|
|
extraLibraries = (drv.extraLibraries or []) ++ [ Cabal ];
|
|
|
|
|
});
|
2015-01-12 21:58:57 +01:00
|
|
|
|
useEnvCabal = p: overrideCabal (p.overrideScope amazonkaEnv) (drv: {
|
2015-01-17 11:44:50 +01:00
|
|
|
|
buildDepends = (drv.buildDepends or []) ++ [ Cabal ];
|
2015-01-12 21:58:57 +01:00
|
|
|
|
});
|
|
|
|
|
amazonka = useEnvCabal super.amazonka;
|
|
|
|
|
amazonka-cloudwatch = useEnvCabal super.amazonka-cloudwatch;
|
2015-01-13 00:13:40 +01:00
|
|
|
|
in {
|
|
|
|
|
inherit amazonka-core amazonkaEnv amazonka amazonka-cloudwatch;
|
2015-01-12 21:14:22 +01:00
|
|
|
|
})
|