From 34e940938de9fdb0c8993841fe7a90f868b12bae Mon Sep 17 00:00:00 2001 From: Junji Hashimoto Date: Tue, 14 Sep 2021 04:33:32 +0000 Subject: [PATCH] Change nix-hash to nix-to-sri --- pkgs/development/python-modules/torchvision/prefetch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/torchvision/prefetch.sh b/pkgs/development/python-modules/torchvision/prefetch.sh index 57d35e591154..caa987d84409 100755 --- a/pkgs/development/python-modules/torchvision/prefetch.sh +++ b/pkgs/development/python-modules/torchvision/prefetch.sh @@ -20,12 +20,12 @@ for url_and_key in "${url_and_key_list[@]}"; do name=$(echo "$url_and_key" | cut -d' ' -f3) echo "prefetching ${url}..." - hash=$(nix hash to-base64 --type sha256 `nix-prefetch-url "$url" --name "$name"`) + hash=$(nix hash to-sri --type sha256 `nix-prefetch-url "$url" --name "$name"`) echo " $key = {" >> $hashfile echo " name = \"$name\";" >> $hashfile echo " url = \"$url\";" >> $hashfile - echo " hash = \"sha256-$hash\";" >> $hashfile + echo " hash = \"$hash\";" >> $hashfile echo " };" >> $hashfile echo