lol

dotnet: remove nuget-to-nix support

+3 -21
+1 -1
maintainers/scripts/update-dotnet-lockfiles.nix
··· 5 5 6 6 This script finds all the derivations in nixpkgs that have a 'fetch-deps' 7 7 attribute, and runs all of them sequentially. This is useful to test changes 8 - to 'fetch-deps', 'nuget-to-nix', 'nuget-to-json', or other changes to the 8 + to 'fetch-deps', 'nuget-to-json', or other changes to the 9 9 dotnet build infrastructure. Regular updates should be done through the 10 10 individual packages update scripts. 11 11 */
-2
pkgs/build-support/dotnet/add-nuget-deps/default.nix
··· 4 4 nix, 5 5 lib, 6 6 replaceVarsWith, 7 - nuget-to-nix, 8 7 nixfmt, 9 8 nuget-to-json, 10 9 cacert, ··· 89 88 isExecutable = true; 90 89 replacements = { 91 90 binPath = lib.makeBinPath [ 92 - nuget-to-nix 93 91 nixfmt 94 92 nuget-to-json 95 93 ];
+2 -18
pkgs/build-support/dotnet/add-nuget-deps/fetch-deps.sh
··· 7 7 8 8 genericBuild 9 9 10 - nuget-to-json "${NUGET_PACKAGES%/}" >deps.json 11 - 12 - if [[ "$LOCKFILE_OUTPUT" == *.nix ]]; then 13 - trap 'rm deps.json' exit 14 - 15 - ( 16 - echo "# This file was automatically generated by passthru.fetch-deps." 17 - echo "# Please dont edit it manually, your changes might get overwritten!" 18 - echo -e "# TODO: This format file is obsolete, consider migrating to JSON.\n" 19 - nuget-to-nix --convert deps.json 20 - ) >deps.nix 21 - nixfmt deps.nix 22 - 23 - mv deps.nix "$LOCKFILE_OUTPUT" 24 - else 25 - mv deps.json "$LOCKFILE_OUTPUT" 26 - fi 10 + nuget-to-json "${NUGET_PACKAGES%/}" >"$LOCKFILE_OUTPUT" 27 11 28 - echo "Succesfully wrote lockfile to $LOCKFILE_OUTPUT" 12 + echo "Successfully wrote lockfile to $LOCKFILE_OUTPUT"