Skip to content

Commit

Permalink
Configure Haskell bootstrapping package sets to perform minimal builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
peti committed Mar 17, 2018
1 parent 1978fa4 commit aa05451
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/top-level/haskell-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit aa05451

Please sign in to comment.