mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
dotnet-sdk: update.sh - fail if determining a nuget hash fails
This commit is contained in:
parent
7bc11802ed
commit
f79c73c2ca
@ -64,6 +64,11 @@ generate_package_list() {
|
||||
local url hash
|
||||
url="${nuget_url}${pkg,,}/${version,,}/${pkg,,}.${version,,}.nupkg"
|
||||
hash="$(nix-prefetch-url "$url")"
|
||||
if [[ -z "$hash" ]]; then
|
||||
echo "Failed to fetch hash for $url" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo " (fetchNuGet { pname = \"${pkg}\"; version = \"${version}\"; sha256 = \"${hash}\"; })"
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user