parent
f0af1ef49c
commit
e3c19ba57e
@ -1,5 +1,27 @@ |
||||
{ runCommand }: |
||||
{ lib |
||||
, runCommandLocal |
||||
, runtimeShell |
||||
, substituteAll |
||||
, nix |
||||
, coreutils |
||||
, findutils |
||||
, gnused |
||||
}: |
||||
|
||||
runCommand "nuget-to-nix" { preferLocalBuild = true; } '' |
||||
install -D -m755 ${./nuget-to-nix.sh} $out/bin/nuget-to-nix |
||||
runCommandLocal "nuget-to-nix" { |
||||
script = substituteAll { |
||||
src = ./nuget-to-nix.sh; |
||||
inherit runtimeShell; |
||||
|
||||
binPath = lib.makeBinPath [ |
||||
nix |
||||
coreutils |
||||
findutils |
||||
gnused |
||||
]; |
||||
}; |
||||
|
||||
meta.description = "Convert a nuget packages directory to a lockfile for buildDotnetModule"; |
||||
} '' |
||||
install -Dm755 $script $out/bin/nuget-to-nix |
||||
'' |
||||
|
Loading…
Reference in new issue