159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
34 lines
534 B
Nix
34 lines
534 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";
|
|
} ''
|
|
install -Dm755 $script $out/bin/nuget-to-nix
|
|
''
|