Test the ‘--prebuilt-only’ flag

This commit is contained in:
Eelco Dolstra 2012-12-03 21:02:06 +01:00
parent d62fc71b85
commit 21c2d8d102

View File

@ -29,6 +29,9 @@ echo "WantMassQuery: 1" >> $cacheDir/nix-cache-info
nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "--S"
x=$(nix-env -f dependencies.nix -qas \* --prebuilt-only)
[ -z "$x" ]
nix-store --option binary-caches "file://$cacheDir" -r $outPath
nix-store --check-validity $outPath