Skip to content
Snippets Groups Projects
Commit 21c2d8d1 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Test the ‘--prebuilt-only’ flag

parent d62fc71b
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,9 @@ echo "WantMassQuery: 1" >> $cacheDir/nix-cache-info ...@@ -29,6 +29,9 @@ echo "WantMassQuery: 1" >> $cacheDir/nix-cache-info
nix-env --option binary-caches "file://$cacheDir" -f dependencies.nix -qas \* | grep -- "--S" 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 --option binary-caches "file://$cacheDir" -r $outPath
nix-store --check-validity $outPath nix-store --check-validity $outPath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment