top-level: Only splice as needed for performance

This commit is contained in:
John Ericson
2017-01-24 11:37:56 -05:00
parent 4c17cd555f
commit bfb147b6a8
3 changed files with 20 additions and 12 deletions
+5 -3
View File
@@ -45,7 +45,8 @@
## Other parameters
##
, # The package set used at build-time
, # The package set used at build-time. If null, `buildPackages` will
# be defined internally as the produced package set as itself.
buildPackages
, # The standard environment to use for building packages.
@@ -84,7 +85,8 @@ let
};
stdenvBootstappingAndPlatforms = self: super: {
buildPackages = buildPackages // { recurseForDerivations = false; };
buildPackages = (if buildPackages == null then self else buildPackages)
// { recurseForDerivations = false; };
inherit stdenv
buildPlatform hostPlatform targetPlatform;
};
@@ -103,7 +105,7 @@ let
inherit (buildPlatform) system platform;
};
splice = self: super: import ./splice.nix lib self;
splice = self: super: import ./splice.nix lib self (buildPackages != null);
allPackages = self: super:
let res = import ./all-packages.nix