forked from lix-project/lix
* Fix for NIX-101 (should use an absolute path for call to nix-hash).
This commit is contained in:
parent
329025253d
commit
f8985d195e
|
@ -78,7 +78,7 @@ if test -z "$finalPath"; then
|
||||||
# garbage-collected independently.
|
# garbage-collected independently.
|
||||||
if test -n "$NIX_DOWNLOAD_CACHE"; then
|
if test -n "$NIX_DOWNLOAD_CACHE"; then
|
||||||
echo -n "$url" > $tmpPath/url
|
echo -n "$url" > $tmpPath/url
|
||||||
urlHash=$(nix-hash --type sha256 --base32 --flat $tmpPath/url)
|
urlHash=$(@bindir@/nix-hash --type sha256 --base32 --flat $tmpPath/url)
|
||||||
echo "$url" > "$NIX_DOWNLOAD_CACHE/$urlHash.url"
|
echo "$url" > "$NIX_DOWNLOAD_CACHE/$urlHash.url"
|
||||||
cachedHashFN="$NIX_DOWNLOAD_CACHE/$urlHash.$hashType"
|
cachedHashFN="$NIX_DOWNLOAD_CACHE/$urlHash.$hashType"
|
||||||
cachedTimestampFN="$NIX_DOWNLOAD_CACHE/$urlHash.stamp"
|
cachedTimestampFN="$NIX_DOWNLOAD_CACHE/$urlHash.stamp"
|
||||||
|
|
Loading…
Reference in a new issue