mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Test the ‘--prebuilt-only’ flag
This commit is contained in:
parent
d62fc71b85
commit
21c2d8d102
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue