From efd4a649fe39a4156bf31af24028770e02c94fb5 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Feb 2024 00:04:29 +0100 Subject: [PATCH] lib/tests/release.nix: Expose system parameter --- lib/tests/release.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/release.nix b/lib/tests/release.nix index d83c15c511fab..30712735d237b 100644 --- a/lib/tests/release.nix +++ b/lib/tests/release.nix @@ -1,6 +1,7 @@ { # The pkgs used for dependencies for the testing itself # Don't test properties of pkgs.lib, but rather the lib in the parent directory - pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; }, + system ? builtins.currentSystem, + pkgs ? import ../.. { inherit system; } // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; }, # For testing someone may edit impure.nix to return cross pkgs, use `pkgsBuildBuild` directly so everything here works. pkgsBB ? pkgs.pkgsBuildBuild, nix ? pkgs-nixVersions.stable,