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'
|
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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user