on iko/ghcjs-patch-master help sign in
Don't null out all compiler.packages; only nonreinstallable packages
commit9bbc69adf477cdfb41f2f4a7a3ab934e31c2711f authorWill Fancher <elvishjerricco@gmail.com> dateWed 31 Oct 2018, 20:26 (8 years ago) parentfd39d56
1 file changed+6−2
modules/component-driver.nix+6−2
modules/component-driver.nix+6−2
@@ -5,6 +5,9 @@ let
55 inherit haskellLib;
66 ghc = config.ghc.package;
77 };
8+
9+ nonReinstallablePkgs = [ "rts" "ghc" "ghc-prim" "integer-gmp" "integer-simple" "base"
10+ "array" "deepseq" "pretty" "ghc-boot-th" "template-haskell"];
811in
912
1013{
@@ -13,6 +16,7 @@ in
1316 };
1417
1518 config.hsPkgs = { buildPackages = config.hsPkgs; }
16− // lib.mapAttrs (_: _: null) config.compiler.packages
17− // lib.mapAttrs (_: pkg: if pkg == null then null else new-builder pkg) config.packages;
19+ // lib.mapAttrs
20+ (name: pkg: if pkg == null || builtins.elem name nonReinstallablePkgs then null else new-builder pkg)
21+ config.packages;
1822}