2017-12-29 21:42:14 +01:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearCache
|
|
|
|
|
|
|
|
cacheURI="file://$cacheDir?compression=br"
|
|
|
|
|
|
|
|
outPath=$(nix-build dependencies.nix --no-out-link)
|
|
|
|
|
|
|
|
nix copy --to $cacheURI $outPath
|
|
|
|
|
2020-07-24 18:44:43 +02:00
|
|
|
HASH=$(nix hash path $outPath)
|
2017-12-29 21:42:14 +01:00
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearCacheCache
|
|
|
|
|
|
|
|
nix copy --from $cacheURI $outPath --no-check-sigs
|
|
|
|
|
2020-07-24 18:44:43 +02:00
|
|
|
HASH2=$(nix hash path $outPath)
|
2017-12-29 21:42:14 +01:00
|
|
|
|
|
|
|
[[ $HASH = $HASH2 ]]
|