Configure Haskell bootstrapping package sets to perform minimal builds.
This commit is contained in:
parent
1978fa444d
commit
aa0545130b
@ -21,6 +21,17 @@ let
|
|||||||
|
|
||||||
callPackage = newScope { inherit haskellLib; };
|
callPackage = newScope { inherit haskellLib; };
|
||||||
|
|
||||||
|
bootstrapPackageSet = self: super: {
|
||||||
|
mkDerivation = drv: super.mkDerivation (drv // {
|
||||||
|
doCheck = false;
|
||||||
|
doHaddock = false;
|
||||||
|
enableExecutableProfiling = false;
|
||||||
|
enableLibraryProfiling = false;
|
||||||
|
enableSharedExecutables = false;
|
||||||
|
enableSharedLibraries = false;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
lib = haskellLib;
|
lib = haskellLib;
|
||||||
|
|
||||||
@ -94,6 +105,7 @@ in rec {
|
|||||||
buildHaskellPackages = bh.packages.ghc7103Binary;
|
buildHaskellPackages = bh.packages.ghc7103Binary;
|
||||||
ghc = bh.compiler.ghc7103Binary;
|
ghc = bh.compiler.ghc7103Binary;
|
||||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-7.10.x.nix { };
|
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-7.10.x.nix { };
|
||||||
|
packageSetConfig = bootstrapPackageSet;
|
||||||
};
|
};
|
||||||
ghc802 = callPackage ../development/haskell-modules {
|
ghc802 = callPackage ../development/haskell-modules {
|
||||||
buildHaskellPackages = bh.packages.ghc802;
|
buildHaskellPackages = bh.packages.ghc802;
|
||||||
@ -104,6 +116,7 @@ in rec {
|
|||||||
buildHaskellPackages = bh.packages.ghc821Binary;
|
buildHaskellPackages = bh.packages.ghc821Binary;
|
||||||
ghc = bh.compiler.ghc821Binary;
|
ghc = bh.compiler.ghc821Binary;
|
||||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.2.x.nix { };
|
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.2.x.nix { };
|
||||||
|
packageSetConfig = bootstrapPackageSet;
|
||||||
};
|
};
|
||||||
ghc822 = callPackage ../development/haskell-modules {
|
ghc822 = callPackage ../development/haskell-modules {
|
||||||
buildHaskellPackages = bh.packages.ghc822;
|
buildHaskellPackages = bh.packages.ghc822;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user