2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, runCommandLocal
|
|
|
|
, runtimeShell
|
|
|
|
, substituteAll
|
|
|
|
, nix
|
|
|
|
, coreutils
|
|
|
|
, findutils
|
|
|
|
, gnused
|
2022-06-26 10:26:21 +00:00
|
|
|
, jq
|
|
|
|
, curl
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
runCommandLocal "nuget-to-nix" {
|
|
|
|
script = substituteAll {
|
|
|
|
src = ./nuget-to-nix.sh;
|
|
|
|
inherit runtimeShell;
|
|
|
|
|
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
nix
|
|
|
|
coreutils
|
|
|
|
findutils
|
|
|
|
gnused
|
2022-06-26 10:26:21 +00:00
|
|
|
jq
|
|
|
|
curl
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
|
|
|
|
} ''
|
|
|
|
install -Dm755 $script $out/bin/nuget-to-nix
|
2021-08-18 13:19:15 +00:00
|
|
|
''
|