39 lines
586 B
Nix
39 lines
586 B
Nix
|
{
|
||
|
lib,
|
||
|
runCommandLocal,
|
||
|
runtimeShell,
|
||
|
substituteAll,
|
||
|
nix,
|
||
|
coreutils,
|
||
|
jq,
|
||
|
yq,
|
||
|
curl,
|
||
|
gnugrep,
|
||
|
gawk,
|
||
|
dotnet-sdk,
|
||
|
}:
|
||
|
|
||
|
runCommandLocal "nuget-to-nix"
|
||
|
{
|
||
|
script = substituteAll {
|
||
|
src = ./nuget-to-nix.sh;
|
||
|
inherit runtimeShell;
|
||
|
|
||
|
binPath = lib.makeBinPath [
|
||
|
nix
|
||
|
coreutils
|
||
|
jq
|
||
|
yq
|
||
|
curl
|
||
|
gnugrep
|
||
|
gawk
|
||
|
dotnet-sdk
|
||
|
];
|
||
|
};
|
||
|
|
||
|
meta.description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
|
||
|
}
|
||
|
''
|
||
|
install -Dm755 $script $out/bin/nuget-to-nix
|
||
|
''
|