mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
nix-prefetch-cvs: emit SRI hashes by default
This commit is contained in:
parent
ef232d59ac
commit
3f7f5df38a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user