nix.tests.nixStatic: init

This formalizes lf-'s suggestion
https://github.com/NixOS/nixpkgs/pull/335342#issuecomment-2294899692

> nixStatic should be a hard blocker [when updating Nix]
This commit is contained in:
Robert Hensing 2024-09-13 12:12:01 +02:00
parent 0291167323
commit be83fcde7d

View File

@ -85,6 +85,7 @@ in
# passthru tests
, pkgsi686Linux
, pkgsStatic
, runCommand
, pkgs
}: let
@ -260,6 +261,8 @@ self = stdenv.mkDerivation {
tests = {
nixi686 = pkgsi686Linux.nixVersions.${self_attribute_name};
nixStatic = pkgsStatic.nixVersions.${self_attribute_name};
# Basic smoke test that needs to pass when upgrading nix.
# Note that this test does only test the nixVersions.stable attribute.
misc = nixosTests.nix-misc.default;