@@ -5,6 +5,9 @@ let
5 inherit haskellLib;
5 inherit haskellLib;
6 ghc = config.ghc.package;
6 ghc = config.ghc.package;
9+ nonReinstallablePkgs = [ "rts" "ghc" "ghc-prim" "integer-gmp" "integer-simple" "base"
10+ "array" "deepseq" "pretty" "ghc-boot-th" "template-haskell"];
@@ -13,6 +16,7 @@ in
15 config.hsPkgs = { buildPackages = config.hsPkgs; }
18 config.hsPkgs = { buildPackages = config.hsPkgs; }
16− // lib.mapAttrs (_: _: null) config.compiler.packages
19+ // lib.mapAttrs
17− // lib.mapAttrs (_: pkg: if pkg == null then null else new-builder pkg) config.packages;
20+ (name: pkg: if pkg == null || builtins.elem name nonReinstallablePkgs then null else new-builder pkg)