Configure Haskell bootstrapping package sets to perform minimal builds.
This commit is contained in:
parent
1978fa444d
commit
aa0545130b
1 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,17 @@ let
|
|||
|
||||
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 {
|
||||
lib = haskellLib;
|
||||
|
||||
|
@ -94,6 +105,7 @@ in rec {
|
|||
buildHaskellPackages = bh.packages.ghc7103Binary;
|
||||
ghc = bh.compiler.ghc7103Binary;
|
||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-7.10.x.nix { };
|
||||
packageSetConfig = bootstrapPackageSet;
|
||||
};
|
||||
ghc802 = callPackage ../development/haskell-modules {
|
||||
buildHaskellPackages = bh.packages.ghc802;
|
||||
|
@ -104,6 +116,7 @@ in rec {
|
|||
buildHaskellPackages = bh.packages.ghc821Binary;
|
||||
ghc = bh.compiler.ghc821Binary;
|
||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.2.x.nix { };
|
||||
packageSetConfig = bootstrapPackageSet;
|
||||
};
|
||||
ghc822 = callPackage ../development/haskell-modules {
|
||||
buildHaskellPackages = bh.packages.ghc822;
|
||||
|
|
Loading…
Reference in a new issue