mirror of
https://github.com/justinwoo/spago2nix.git
synced 2024-11-22 12:53:09 +03:00
14 lines
549 B
Diff
14 lines
549 B
Diff
diff --git a/nix-prefetch-git b/nix-prefetch-git
|
|
index 43f7c5a..a04566b 100755
|
|
--- a/nix-prefetch-git
|
|
+++ b/nix-prefetch-git
|
|
@@ -430,9 +430,6 @@ else
|
|
# Compute the hash.
|
|
hash=$(nix-hash --type $hashType --base32 "$tmpFile")
|
|
|
|
- # Add the downloaded file to the Nix store.
|
|
- finalPath=$(nix-store --add-fixed --recursive "$hashType" "$tmpFile")
|
|
-
|
|
if test -n "$expHash" -a "$expHash" != "$hash"; then
|
|
echo "hash mismatch for URL \`$url'. Got \`$hash'; expected \`$expHash'." >&2
|
|
exit 1
|