From 60f354dfb8ba7b4ac0f4ddc7bf22bf9c7dd1f40a Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 22 Feb 2016 10:50:27 -0600 Subject: [PATCH] nix-prefetch-git: output base32 hash so output matches nix-build errors It turns out hashFormat has never been set. --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 2c5852c646e4..97096aa29806 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.