haskell-ng: reduce memory requirements of overrideScope by improved sharing

With this patch applied, "nix-env -qaP -A haskellngPackages" succeeds fine
without running out of memory. Thanks to @bennofs for catching this in
bbb422af92 (commitcomment-11235596).
This commit is contained in:
Peter Simons 2015-05-18 10:55:29 +02:00
parent 807146cf75
commit b9152b89c2

View file

@ -46,7 +46,8 @@ let
};
mkScope = scope: pkgs // pkgs.xlibs // pkgs.gnome // scope;
callPackage = drv: args: callPackageWithScope (mkScope self) drv args;
defaultScope = mkScope self;
callPackage = drv: args: callPackageWithScope defaultScope drv args;
in
import ./hackage-packages.nix { inherit pkgs stdenv callPackage; } self // {