mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
Add bootStdenv condition around the overrider.
This condition used to be implicit in the sense that the stdenvOverrides uses pkgs_6, instead of pkgs_7 as its super set, and also that each stage of the compiler is build again the bootstrap packages of the previous stage, thus overriden by the stdenv.override function.
This commit is contained in:
parent
598ed874df
commit
9e8c5208a1
@ -130,6 +130,9 @@ let
|
||||
|
||||
aliases = self: super: import ./aliases.nix super;
|
||||
|
||||
customOverrides = self: super:
|
||||
lib.optionalAttrs (bootStdenv == null) (overrider self super);
|
||||
|
||||
pkgs_1 = {};
|
||||
pkgs_2 = pkgs_1 // stdenvAdapters pkgs pkgs_1;
|
||||
pkgs_3 = pkgs_2 // trivialBuilders pkgs pkgs_2;
|
||||
@ -137,7 +140,7 @@ let
|
||||
pkgs_5 = pkgs_4 // allPackages pkgs pkgs_4;
|
||||
pkgs_6 = pkgs_5 // aliases pkgs pkgs_5;
|
||||
|
||||
pkgs_7 = pkgs_6 // overrider pkgs pkgs_6;
|
||||
pkgs_7 = pkgs_6 // customOverrides pkgs pkgs_6;
|
||||
|
||||
# The overriden, final packages.
|
||||
pkgs = pkgs_7 // stdenvOverrides pkgs pkgs_6;
|
||||
|
Loading…
Reference in New Issue
Block a user