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 902f010a74e6e..39b0ece112c7b 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 @@ -43,7 +43,7 @@ for index in "${sources[@]}"; do base_addresses[$index]="$base_address" done -echo "{ fetchNuGet }: [" +echo -e "{ fetchNuGet }:\n[" cd "$pkgs" for package in *; do @@ -93,11 +93,14 @@ for package in *; do exit 1 fi + echo " (fetchNuGet {" + echo " pname = \"$id\";" + echo " version = \"$version\";" + echo " hash = \"$hash\";" if [[ "$source" != https://api.nuget.org/v3/index.json ]]; then - echo " (fetchNuGet { pname = \"$id\"; version = \"$version\"; hash = \"$hash\"; url = \"$url\"; })" - else - echo " (fetchNuGet { pname = \"$id\"; version = \"$version\"; hash = \"$hash\"; })" + echo " url = \"$url\";" fi + echo " })" done cd .. done