From a274da605de4dcdf3eeb1bc63967d3098505dc12 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Feb 2020 16:20:41 +0100 Subject: lib/tests/misc.nix: Fix dependency on currentSystem This doesn't work in pure mode. --- lib/tests/misc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 59ed1e507e249..01ff5ecf14850 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -148,7 +148,7 @@ runTests { "${builtins.storeDir}/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11"; in { storePath = isStorePath goodPath; - storePathDerivation = isStorePath (import ../.. {}).hello; + storePathDerivation = isStorePath (import ../.. { system = "x86_64-linux"; }).hello; storePathAppendix = isStorePath "${goodPath}/bin/python"; nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath))); -- cgit 1.4.1 From 5c389f84d42538f41e3e9a73b5e6bee645d45ebf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Feb 2020 16:21:04 +0100 Subject: lib/tests/misc.nix: Don't make a copy on Nixpkgs --- lib/tests/release.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tests/release.nix b/lib/tests/release.nix index 737d142d25324..069c015d783a0 100644 --- a/lib/tests/release.nix +++ b/lib/tests/release.nix @@ -2,7 +2,7 @@ pkgs.runCommandNoCC "nixpkgs-lib-tests" { buildInputs = [ pkgs.nix (import ./check-eval.nix) ]; - NIX_PATH="nixpkgs=${pkgs.path}"; + NIX_PATH = "nixpkgs=${toString pkgs.path}"; } '' datadir="${pkgs.nix}/share" export TEST_ROOT=$(pwd)/test-tmp -- cgit 1.4.1