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' 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 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 dotnet build infrastructure. Regular updates should be done through the
individual packages update scripts. individual packages update scripts.
*/ */

View File

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

View File

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