diff options
author | Peter Simons <simons@cryp.to> | 2018-03-16 21:52:18 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2018-03-17 08:21:23 +0100 |
commit | aa0545130ba15d02d6017277a5561d4f011d0444 (patch) | |
tree | aa1aa7d2f9e1fd200b710eb065e595792449e902 /pkgs/top-level/haskell-packages.nix | |
parent | 1978fa444dda07aa2057f24511b0c39502b461eb (diff) |
Configure Haskell bootstrapping package sets to perform minimal builds.
Diffstat (limited to 'pkgs/top-level/haskell-packages.nix')
-rw-r--r-- | pkgs/top-level/haskell-packages.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index ae5d077f7821..56d5aada81b6 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -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; |