lib/tests/misc.nix: Fix dependency on currentSystem

This doesn't work in pure mode.
This commit is contained in:
Eelco Dolstra 2020-02-10 16:20:41 +01:00
parent 8f86624ac9
commit a274da605d

View File

@ -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)));