Skip to content

Commit

Permalink
stdenv boot: Hack to allow skipping a stage
Browse files Browse the repository at this point in the history
We need this ugliness for cross-building until we can boot GCC. See
NixOS#26004 for progress on that.
  • Loading branch information
Ericson2314 committed Jul 6, 2017
1 parent 730a394 commit 00a21d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/stdenv/booter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ stageFuns: let
in
if args.__raw or false
then args'
else allPackages ((builtins.removeAttrs args' ["selfBuild"]) // {
buildPackages = if args.selfBuild or true then null else prevStage;
else allPackages ((builtins.removeAttrs args' [ "selfBuild" "skipPrev" ]) // {
buildPackages =
/**/ if args.selfBuild or true then null
else if args.skipPrev or false then prevStage.stdenv.__bootPackages
else prevStage;
__targetPackages = if args.selfBuild or true then null else nextStage;
});

Expand Down

0 comments on commit 00a21d7

Please sign in to comment.