diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/binary-cache.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/binary-cache.sh b/tests/binary-cache.sh index 2e38a9d938b3..b02456220da3 100644 --- a/tests/binary-cache.sh +++ b/tests/binary-cache.sh @@ -5,7 +5,7 @@ clearManifests # Create the binary cache. cacheDir=$TEST_ROOT/binary-cache -rm -rf $cacheDir +rm -rf "$cacheDir" outPath=$(nix-build dependencies.nix --no-out-link) @@ -17,6 +17,8 @@ nix-push --dest $cacheDir $outPath clearStore rm -f $NIX_STATE_DIR/binary-cache* +export _NIX_CACHE_FILE_URLS=1 + nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "---" nix-store --option binary-caches "file://$cacheDir" -r $outPath |