release.nix: resurrect stdenvBootstrapTools

13d6681ce7 crippled it unintentionally.
Also remove the incorrect/non-existing stdenv.i686-linux;
building the bootstrap tools should be a good-enough test anyway.

authored by Vladimír Čunát and committed by Robin Gloster b679e148 2bbfac7b

+21 -21
+21 -21
pkgs/top-level/release.nix
··· 58 58 jobs.manual 59 59 jobs.lib-tests 60 60 jobs.stdenv.x86_64-linux 61 - jobs.stdenv.i686-linux # most basic sanity check 62 61 jobs.stdenv.x86_64-darwin 63 62 jobs.linux.x86_64-linux 64 63 jobs.python.x86_64-linux ··· 79 78 jobs.vim.x86_64-darwin 80 79 ] ++ lib.collect lib.isDerivation jobs.stdenvBootstrapTools; 81 80 }; 82 - } // (lib.optionalAttrs (builtins.elem "i686-linux" systemsWithAnySupport) { 83 - stdenvBootstrapTools.i686-linux = 84 - { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "i686-linux"; }) dist test; }; 85 - }) // (lib.optionalAttrs (builtins.elem "x86_64-linux" systemsWithAnySupport) { 86 - stdenvBootstrapTools.x86_64-linux = 87 - { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "x86_64-linux"; }) dist test; }; 88 - }) // (lib.optionalAttrs (builtins.elem "aarch64-linux" systemsWithAnySupport) { 89 - stdenvBootstrapTools.aarch64-linux = 90 - { inherit (import ../stdenv/linux/make-bootstrap-tools.nix { system = "aarch64-linux"; }) dist test; }; 91 - }) // (lib.optionalAttrs (builtins.elem "x86_64-darwin" systemsWithAnySupport) { 92 - stdenvBootstrapTools.x86_64-darwin = 93 - let 94 - bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; }; 95 - in { 96 - # Lightweight distribution and test 97 - inherit (bootstrap) dist test; 98 - # Test a full stdenv bootstrap from the bootstrap tools definition 99 - inherit (bootstrap.test-pkgs) stdenv; 100 - }; 101 - }) // (mapTestOn ((packagePlatforms pkgs) // rec { 81 + 82 + stdenvBootstrapTools = with lib; 83 + genAttrs systemsWithAnySupport 84 + (system: { 85 + inherit (import ../stdenv/linux/make-bootstrap-tools.nix { inherit system; }) 86 + dist test; 87 + }) 88 + # darwin is special in this 89 + // optionalAttrs (builtins.elem "x86_64-darwin" systemsWithAnySupport) { 90 + x86_64-darwin = 91 + let 92 + bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; }; 93 + in { 94 + # Lightweight distribution and test 95 + inherit (bootstrap) dist test; 96 + # Test a full stdenv bootstrap from the bootstrap tools definition 97 + inherit (bootstrap.test-pkgs) stdenv; 98 + }; 99 + }; 100 + 101 + } // (mapTestOn ((packagePlatforms pkgs) // rec { 102 102 haskell.compiler = packagePlatforms pkgs.haskell.compiler; 103 103 haskellPackages = packagePlatforms pkgs.haskellPackages; 104 104