core/pkgs/build-support/dotnet/nuget-to-nix/default.nix

39 lines
586 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{
lib,
runCommandLocal,
runtimeShell,
substituteAll,
nix,
coreutils,
jq,
yq,
curl,
gnugrep,
gawk,
dotnet-sdk,
2024-05-02 00:46:19 +00:00
}:
2024-06-30 08:16:52 +00:00
runCommandLocal "nuget-to-nix"
{
script = substituteAll {
src = ./nuget-to-nix.sh;
inherit runtimeShell;
2024-05-02 00:46:19 +00:00
2024-06-30 08:16:52 +00:00
binPath = lib.makeBinPath [
nix
coreutils
jq
yq
curl
gnugrep
gawk
dotnet-sdk
];
};
2024-05-02 00:46:19 +00:00
2024-06-30 08:16:52 +00:00
meta.description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
}
''
install -Dm755 $script $out/bin/nuget-to-nix
''