aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/lib/tests/release.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/lib/tests/release.nix')
-rw-r--r--nixpkgs/lib/tests/release.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/nixpkgs/lib/tests/release.nix b/nixpkgs/lib/tests/release.nix
index ec0f9c32d3f..eebee1b49bc 100644
--- a/nixpkgs/lib/tests/release.nix
+++ b/nixpkgs/lib/tests/release.nix
@@ -1,8 +1,17 @@
-{ pkgs ? import ../.. {} }:
+{ # 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!"; }
+}:
pkgs.runCommandNoCC "nixpkgs-lib-tests" {
- buildInputs = [ pkgs.nix (import ./check-eval.nix) (import ./maintainers.nix { inherit pkgs; }) ];
- NIX_PATH = "nixpkgs=${toString pkgs.path}";
+ buildInputs = [
+ pkgs.nix
+ (import ./check-eval.nix)
+ (import ./maintainers.nix {
+ inherit pkgs;
+ lib = import ../.;
+ })
+ ];
} ''
datadir="${pkgs.nix}/share"
export TEST_ROOT=$(pwd)/test-tmp