diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-03-28 17:52:33 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-03-28 17:52:33 +0000 |
commit | f8985d195e600387fd03137872bb27cec65b2492 (patch) | |
tree | 8471334ec3a8106a57c3176fd1bd5d2fd54159b5 /scripts | |
parent | 329025253d38361ee3d13af0728f99c756c86b7a (diff) |
* Fix for NIX-101 (should use an absolute path for call to nix-hash).
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-prefetch-url.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index ad4cfa30b..2f7b4eeac 100644 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -78,7 +78,7 @@ if test -z "$finalPath"; then # garbage-collected independently. if test -n "$NIX_DOWNLOAD_CACHE"; then 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" cachedHashFN="$NIX_DOWNLOAD_CACHE/$urlHash.$hashType" cachedTimestampFN="$NIX_DOWNLOAD_CACHE/$urlHash.stamp" |