17 # Name of the nuget package to install, if different from pname
19 # Hash of the nuget package to install, will be given on first build
20 # nugetHash uses SRI hash and should be preferred
23 # Additional nuget deps needed by the tool package
25 # Executables to wrap into `$out/bin`, same as in `buildDotnetModule`, but with
26 # a default of `pname` instead of null, to avoid auto-wrapping everything
28 # The dotnet runtime to use, dotnet tools need a full SDK to function
29 dotnet-runtime ? dotnet-sdk,
52 buildInputs = [ nupkg ];
54 dotnetGlobalTool = true;
56 useDotnetFromEnv = true;
63 dotnet tool install --tool-path $out/lib/${pname} ${nugetName}
65 # remove files that contain nix store paths to temp nuget sources we made
66 find $out -name 'project.assets.json' -delete
67 find $out -name '.nupkg.metadata' -delete
73 updateScript = ./update.sh;
75 } // args.passthru or { };
78 (if lib.isFunction fnOrAttrs then fnOrAttrs finalAttrs else fnOrAttrs)