nix-prefetch-cvs: emit SRI hashes by default

This commit is contained in:
nicoo 2024-09-17 06:54:57 +00:00
parent ef232d59ac
commit 3f7f5df38a

View File

@ -59,7 +59,7 @@ if test -z "$finalPath"; then
(cd "$tmpPath" && cvs -f -z0 -d $cvsRoot export "${args[*]}" -d cvs-export $module >&2)
# Compute the hash.
hash=$(nix-hash --type $hashType $hashFormat $tmpFile)
hash=$(nix-hash --type $hashType ${hashFormat:-"--sri"} $tmpFile)
if ! test -n "$QUIET"; then echo "hash is $hash" >&2; fi
# Add the downloaded file to the Nix store.