depot/third_party/nixpkgs/pkgs/build-support/dotnet/nuget-to-nix/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

37 lines
581 B
Nix

{ lib
, runCommandLocal
, runtimeShell
, substituteAll
, nix
, coreutils
, jq
, xmlstarlet
, curl
, gnugrep
, gawk
, cacert
}:
runCommandLocal "nuget-to-nix" {
script = substituteAll {
src = ./nuget-to-nix.sh;
inherit runtimeShell cacert;
binPath = lib.makeBinPath [
nix
coreutils
jq
xmlstarlet
curl
gnugrep
gawk
];
};
meta = {
description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
mainProgram = "nuget-to-nix";
};
} ''
install -Dm755 $script $out/bin/nuget-to-nix
''