From f8985d195e600387fd03137872bb27cec65b2492 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Mar 2008 17:52:33 +0000 Subject: [PATCH] * Fix for NIX-101 (should use an absolute path for call to nix-hash). --- scripts/nix-prefetch-url.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"