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:
parent
807146cf75
commit
b9152b89c2
@ -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 // {
|
||||
|
Loading…
Reference in New Issue
Block a user