Skip to content

Commit

Permalink
nix.tests.nixStatic: init
Browse files Browse the repository at this point in the history
This formalizes lf-'s suggestion
NixOS#335342 (comment)

> nixStatic should be a hard blocker [when updating Nix]
  • Loading branch information
roberth authored and nartsisss committed Sep 20, 2024
1 parent cad0b77 commit a0d7dae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/package-management/nix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ in

# passthru tests
, pkgsi686Linux
, pkgsStatic
, runCommand
, pkgs
}: let
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a0d7dae

Please sign in to comment.