tests.stdenv.outputs-no-out: cause less rebuilds
now gcc isn't built
This commit is contained in:
parent
c8b7048233
commit
6e422a0fba
|
@ -4,18 +4,20 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, pkgs
|
, pkgs
|
||||||
, lib
|
, lib
|
||||||
, runCommand
|
|
||||||
, testers
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# early enough not to rebuild gcc but late enough to have patchelf
|
# early enough not to rebuild gcc but late enough to have patchelf
|
||||||
earlyPkgs = stdenv.__bootPackages.stdenv.__bootPackages;
|
earlyPkgs = stdenv.__bootPackages.stdenv.__bootPackages;
|
||||||
|
earlierPkgs = stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages;
|
||||||
# use a early stdenv so when hacking on stdenv this test can be run quickly
|
# use a early stdenv so when hacking on stdenv this test can be run quickly
|
||||||
bootStdenv = stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv;
|
bootStdenv = stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv;
|
||||||
pkgsStructured = import pkgs.path { config = { structuredAttrsByDefault = true; }; inherit (stdenv.hostPlatform) system; };
|
pkgsStructured = import pkgs.path { config = { structuredAttrsByDefault = true; }; inherit (stdenv.hostPlatform) system; };
|
||||||
bootStdenvStructuredAttrsByDefault = pkgsStructured.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv;
|
bootStdenvStructuredAttrsByDefault = pkgsStructured.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv;
|
||||||
|
|
||||||
|
runCommand = earlierPkgs.runCommand;
|
||||||
|
|
||||||
|
|
||||||
ccWrapperSubstitutionsTest = { name, stdenv', extraAttrs ? { } }:
|
ccWrapperSubstitutionsTest = { name, stdenv', extraAttrs ? { } }:
|
||||||
|
|
||||||
|
@ -101,7 +103,7 @@ in
|
||||||
hooks = lib.recurseIntoAttrs (import ./hooks.nix { stdenv = bootStdenv; pkgs = earlyPkgs; inherit lib; });
|
hooks = lib.recurseIntoAttrs (import ./hooks.nix { stdenv = bootStdenv; pkgs = earlyPkgs; inherit lib; });
|
||||||
|
|
||||||
outputs-no-out = runCommand "outputs-no-out-assert" {
|
outputs-no-out = runCommand "outputs-no-out-assert" {
|
||||||
result = testers.testBuildFailure (stdenv.mkDerivation {
|
result = earlierPkgs.testers.testBuildFailure (bootStdenv.mkDerivation {
|
||||||
NIX_DEBUG = 1;
|
NIX_DEBUG = 1;
|
||||||
name = "outputs-no-out";
|
name = "outputs-no-out";
|
||||||
outputs = ["foo"];
|
outputs = ["foo"];
|
||||||
|
|
Loading…
Reference in a new issue