Nix: Fix new hash convert format.

This commit is contained in:
Dmitry Voronin 2024-11-22 05:20:31 +03:00
parent 1f56b25389
commit 79815059c1
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

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