Skip to content

Commit

Permalink
lib/tests/release.nix: Expose system parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth authored and infinisil committed Dec 16, 2024
1 parent 1303c15 commit efd4a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tests/release.nix
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit efd4a64

Please sign in to comment.