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;
|
|
|
|
haskeline = self.haskeline_0_7_1_3; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616.
|
|
|
|
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;
|
|
|
|
terminfo = self.terminfo_0_4_0_0; # GHC's version is broken: https://github.com/NixOS/nixpkgs/issues/5616.
|
|
|
|
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-12 23:14:22 +03:00
|
|
|
|
|
|
|
// # packages relating to amazonka
|
|
|
|
|
|
|
|
(let
|
|
|
|
amazonkaEnv = let self_ = self; in self: super: {
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // {
|
|
|
|
doCheck = false;
|
|
|
|
});
|
|
|
|
mtl = self.mtl_2_2_1;
|
|
|
|
transformers = self.transformers_0_4_2_0;
|
|
|
|
transformers-compat = overrideCabal super.transformers-compat (drv: { configureFlags = []; });
|
|
|
|
aeson = disableCabalFlag super.aeson "old-locale";
|
|
|
|
hscolour = super.hscolour;
|
|
|
|
time = self.time_1_5_0_1;
|
|
|
|
unix = self.unix_2_7_1_0;
|
|
|
|
directory = self.directory_1_2_1_0;
|
|
|
|
process = overrideCabal self.process_1_2_1_0 (drv: {
|
|
|
|
coreSetup = true;
|
|
|
|
});
|
2015-01-12 23:58:57 +03:00
|
|
|
inherit amazonka-core;
|
2015-01-12 23:14:22 +03:00
|
|
|
} // (builtins.listToAttrs (map (name: {
|
|
|
|
inherit name;
|
|
|
|
value = overrideCabal super.${name} (drv: {
|
|
|
|
extraLibraries = (drv.extraLibraries or []) ++ [ self.Cabal_1_18_1_6 ];
|
|
|
|
});
|
|
|
|
}) [
|
|
|
|
"conduit-extra"
|
|
|
|
"streaming-commons"
|
|
|
|
"http-client"
|
|
|
|
"cryptohash-conduit"
|
|
|
|
"xml-conduit"
|
2015-01-12 23:58:57 +03:00
|
|
|
"x509"
|
|
|
|
"x509-store"
|
|
|
|
"x509-system"
|
|
|
|
"x509-validation"
|
|
|
|
"tls"
|
|
|
|
"connection"
|
|
|
|
"http-client-tls"
|
|
|
|
"http-conduit"
|
2015-01-12 23:14:22 +03: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 23:58:57 +03:00
|
|
|
useEnvCabal = p: overrideCabal (p.overrideScope amazonkaEnv) (drv: {
|
|
|
|
extraLibraries = (drv.extraLibraries or []) ++ [ Cabal ];
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
inherit amazonka-core;
|
|
|
|
amazonka = useEnvCabal super.amazonka;
|
|
|
|
amazonka-cloudwatch = useEnvCabal super.amazonka-cloudwatch;
|
2015-01-12 23:14:22 +03:00
|
|
|
})
|