diff --git a/pkgs/build-support/fetchcvs/nix-prefetch-cvs b/pkgs/build-support/fetchcvs/nix-prefetch-cvs index b6a169f8b531..4438f44026f2 100755 --- a/pkgs/build-support/fetchcvs/nix-prefetch-cvs +++ b/pkgs/build-support/fetchcvs/nix-prefetch-cvs @@ -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.