dotnet: remove nuget-to-nix support
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
];
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user