2017-12-29 20:42:14 +00: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 16:44:43 +00:00
|
|
|
HASH=$(nix hash path $outPath)
|
2017-12-29 20:42:14 +00:00
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearCacheCache
|
|
|
|
|
|
|
|
nix copy --from $cacheURI $outPath --no-check-sigs
|
|
|
|
|
2020-07-24 16:44:43 +00:00
|
|
|
HASH2=$(nix hash path $outPath)
|
2017-12-29 20:42:14 +00:00
|
|
|
|
|
|
|
[[ $HASH = $HASH2 ]]
|