nuget-to-nix: use dotnet from PATH

The dotnet sdk used usually needs to match the one required by the
project (global.json). Having the dependcy in nix just meant it always
had to be overridden.
This commit is contained in:
David McFarland 2024-09-07 23:51:12 -03:00
parent e05c0c4f98
commit 1d4d0d3db7
3 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@
, curl
, gnugrep
, gawk
, dotnet-sdk
}:
runCommandLocal "nuget-to-nix" {
@ -25,7 +24,6 @@ runCommandLocal "nuget-to-nix" {
curl
gnugrep
gawk
dotnet-sdk
];
};

View File

@ -3,7 +3,7 @@
set -euo pipefail
shopt -s nullglob
export PATH="@binPath@"
export PATH="@binPath@:$PATH"
# used for glob ordering of package names
export LC_ALL=C

View File

@ -79,7 +79,7 @@ let
nativeBuildInputs = old.nativeBuildInputs ++ [
nix
cacert
(nuget-to-nix.override { dotnet-sdk = dotnetSdk; })
nuget-to-nix
];
postPatch = old.postPatch or "" + ''
xmlstarlet ed \