Nix: Replace nix hash with nix hash convert.

This commit is contained in:
Dmitry Voronin 2024-11-20 17:19:19 +03:00
parent 52adb1bdc0
commit f75bb5063e
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -57,7 +57,7 @@
return 2 return 2
fi fi
local result=$(nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}")) local result=$(nix hash convert to-sri --type sha256 $(nix-prefetch-url "''${url}"))
printf "%s" ''${result} | copy printf "%s" ''${result} | copy
printf "%s\n" ''${result} printf "%s\n" ''${result}
} }