Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pkgs/build-support/dotnet/nuget-to-nix/nuget-to-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down