mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue