dotnet: remove nuget-to-nix support

Changed files
+3 -21
maintainers
pkgs
build-support
dotnet
add-nuget-deps
+1 -1
maintainers/scripts/update-dotnet-lockfiles.nix
···
This script finds all the derivations in nixpkgs that have a 'fetch-deps'
attribute, and runs all of them sequentially. This is useful to test changes
-
to 'fetch-deps', 'nuget-to-nix', 'nuget-to-json', or other changes to the
+
to 'fetch-deps', 'nuget-to-json', or other changes to the
dotnet build infrastructure. Regular updates should be done through the
individual packages update scripts.
*/
-2
pkgs/build-support/dotnet/add-nuget-deps/default.nix
···
nix,
lib,
replaceVarsWith,
-
nuget-to-nix,
nixfmt,
nuget-to-json,
cacert,
···
isExecutable = true;
replacements = {
binPath = lib.makeBinPath [
-
nuget-to-nix
nixfmt
nuget-to-json
];
+2 -18
pkgs/build-support/dotnet/add-nuget-deps/fetch-deps.sh
···
genericBuild
-
nuget-to-json "${NUGET_PACKAGES%/}" >deps.json
-
-
if [[ "$LOCKFILE_OUTPUT" == *.nix ]]; then
-
trap 'rm deps.json' exit
-
-
(
-
echo "# This file was automatically generated by passthru.fetch-deps."
-
echo "# Please dont edit it manually, your changes might get overwritten!"
-
echo -e "# TODO: This format file is obsolete, consider migrating to JSON.\n"
-
nuget-to-nix --convert deps.json
-
) >deps.nix
-
nixfmt deps.nix
-
-
mv deps.nix "$LOCKFILE_OUTPUT"
-
else
-
mv deps.json "$LOCKFILE_OUTPUT"
-
fi
+
nuget-to-json "${NUGET_PACKAGES%/}" >"$LOCKFILE_OUTPUT"
-
echo "Succesfully wrote lockfile to $LOCKFILE_OUTPUT"
+
echo "Successfully wrote lockfile to $LOCKFILE_OUTPUT"