tests.nixos-functions: don’t omit derivations on non‐Linux

Hydra can handle packages that `throw` but not attributes that
disappear depending on platform, and it seems okay for evaluation to
fail here for non‐Linux platforms.
This commit is contained in:
Emily 2024-10-29 05:21:34 +00:00
parent d6324880a4
commit f594f608dc

View File

@ -17,15 +17,13 @@ let
versionSuffix = "test"; versionSuffix = "test";
label = "test"; label = "test";
}; };
in lib.optionalAttrs stdenv.hostPlatform.isLinux ( in pkgs.recurseIntoAttrs {
pkgs.recurseIntoAttrs {
nixos-test = (pkgs.nixos { nixos-test = (pkgs.nixos {
system.nixos = dummyVersioning; system.nixos = dummyVersioning;
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
fileSystems."/".device = "/dev/null"; fileSystems."/".device = "/dev/null";
system.stateVersion = lib.trivial.release; system.stateVersion = lib.trivial.release;
}).toplevel; }).toplevel;
} }
)