diff options
author | David McFarland <corngood@gmail.com> | 2024-07-08 11:47:16 -0300 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2024-07-08 12:14:09 -0300 |
commit | 691bec7b0e62f881cba1494e984db25b32e70bde (patch) | |
tree | de2704ce44b171d621ad08398195b7ae077dface /pkgs/build-support | |
parent | ee8eb92f6be813b1ade668391cebd6e0123c058c (diff) |
nuget-to-nix: fix hash generation when resolving multiple sources
Fixes: 2280d5c467ff7d95ce4e1233408eae8fe98ddff1
Diffstat (limited to 'pkgs/build-support')
-rwxr-xr-x | pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh b/pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh index 8cfbf649ad965..92b0200ec034d 100755 --- a/pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh +++ b/pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh @@ -70,6 +70,7 @@ for package in *; do break else if hash=$(nix-prefetch-url "$url" 2>"$tmp"/error); then + hash="$(nix-hash --to-sri --type sha256 "$hash")" # If multiple remote sources are enabled, nuget will try them all # concurrently and use the one that responds first. We always use the # first source that has the package. |