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:
parent
e05c0c4f98
commit
1d4d0d3db7
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user