dotnet: remove nuget-to-nix support

This commit is contained in:
Jamie Magee
2025-08-27 18:25:04 -07:00
parent 5ed6fee39c
commit 4e36f266d6
3 changed files with 3 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
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.
*/

View File

@@ -4,7 +4,6 @@
nix,
lib,
replaceVarsWith,
nuget-to-nix,
nixfmt,
nuget-to-json,
cacert,
@@ -89,7 +88,6 @@ attrs
isExecutable = true;
replacements = {
binPath = lib.makeBinPath [
nuget-to-nix
nixfmt
nuget-to-json
];

View File

@@ -7,22 +7,6 @@ LOCKFILE_OUTPUT="$1"
genericBuild
nuget-to-json "${NUGET_PACKAGES%/}" >deps.json
nuget-to-json "${NUGET_PACKAGES%/}" >"$LOCKFILE_OUTPUT"
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
echo "Succesfully wrote lockfile to $LOCKFILE_OUTPUT"
echo "Successfully wrote lockfile to $LOCKFILE_OUTPUT"