Skip to content

Commit

Permalink
release.nix: Only build Only build bootstrap tools when their system …
Browse files Browse the repository at this point in the history
…is supported
  • Loading branch information
grahamc authored and globin committed Jan 22, 2017
1 parent 121b8d2 commit 13d6681
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/top-level/release.nix
Expand Up @@ -67,13 +67,13 @@ let
jobs.vim.x86_64-darwin
] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools;
};

} // (lib.optionalAttrs (builtins.elem "i686-linux" supportedSystems) {
stdenvBootstrapTools.i686-linux =
{ inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "i686-linux"; }) dist test; };

}) // (lib.optionalAttrs (builtins.elem "x86_64-linux" supportedSystems) {
stdenvBootstrapTools.x86_64-linux =
{ inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "x86_64-linux"; }) dist test; };

}) // (lib.optionalAttrs (builtins.elem "x86_64-darwin" supportedSystems) {
stdenvBootstrapTools.x86_64-darwin =
let
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; };
Expand All @@ -83,8 +83,7 @@ let
# Test a full stdenv bootstrap from the bootstrap tools definition
inherit (bootstrap.test-pkgs) stdenv;
};

} // (mapTestOn ((packagePlatforms pkgs) // rec {
}) // (mapTestOn ((packagePlatforms pkgs) // rec {
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
haskellPackages = packagePlatforms pkgs.haskellPackages;

Expand Down

1 comment on commit 13d6681

@vcunat
Copy link
Member

@vcunat vcunat commented on 13d6681 Aug 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This killed all stdenvBootstrapTools except for the last one, due to the way // works. Apparently, noone has noticed for half a year :-) Fixed in 332a60c.

Please sign in to comment.