From a0d7dae6490d1bd88e36ab550053957a793270d0 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 13 Sep 2024 12:12:01 +0200 Subject: [PATCH] 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] --- pkgs/tools/package-management/nix/common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/package-management/nix/common.nix b/pkgs/tools/package-management/nix/common.nix index 0e71ae36d0893a0..58923e44b48df7c 100644 --- a/pkgs/tools/package-management/nix/common.nix +++ b/pkgs/tools/package-management/nix/common.nix @@ -85,6 +85,7 @@ in # passthru tests , pkgsi686Linux +, pkgsStatic , runCommand , pkgs }: let @@ -263,6 +264,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;