btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / nu / nuget-to-nix / package.nix
blob6a746d30a8ff34c922a173bfb3242588d94a43af
1 { lib
2 , runCommandLocal
3 , runtimeShell
4 , substituteAll
5 , nix
6 , coreutils
7 , jq
8 , xmlstarlet
9 , curl
10 , gnugrep
11 , gawk
12 , cacert
15 runCommandLocal "nuget-to-nix" {
16   script = substituteAll {
17     src = ./nuget-to-nix.sh;
18     inherit runtimeShell cacert;
20     binPath = lib.makeBinPath [
21       nix
22       coreutils
23       jq
24       xmlstarlet
25       curl
26       gnugrep
27       gawk
28     ];
29   };
31   meta = {
32     description = "Convert a nuget packages directory to a lockfile for buildDotnetModule";
33     mainProgram = "nuget-to-nix";
34   };
35 } ''
36   install -Dm755 $script $out/bin/nuget-to-nix