aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/fetchgit
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2016-02-22 10:50:27 -0600
committerGraham Christensen <graham@grahamc.com>2016-02-22 10:50:27 -0600
commit60f354dfb8ba7b4ac0f4ddc7bf22bf9c7dd1f40a (patch)
tree3c1ab0f5bf9f6868c0360dcfb15f239bfb715356 /pkgs/build-support/fetchgit
parente63a3a6ad4a1a3fe7d5b7a2d07fd6ef8f8563bac (diff)
nix-prefetch-git: output base32 hash so output matches nix-build errors
It turns out hashFormat has never been set.
Diffstat (limited to 'pkgs/build-support/fetchgit')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index 2c5852c646e..97096aa2980 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -326,7 +326,7 @@ else
clone_user_rev "$tmpFile" "$url" "$rev"
# Compute the hash.
- hash=$(nix-hash --type $hashType $hashFormat $tmpFile)
+ hash=$(nix-hash --type $hashType --base32 $tmpFile)
if ! test -n "$QUIET"; then echo "hash is $hash" >&2; fi
# Add the downloaded file to the Nix store.