1 { stdenv, fetchFromGitHub, makeWrapper, mono, lib }:
3 stdenv.mkDerivation (attrs: {
7 src = fetchFromGitHub {
9 repo = "linux-packaging-nuget";
10 rev = "upstream/${attrs.version}.bin";
11 hash = "sha256-9/dSeVshHbpYIgGE/8OzrB4towrWVB3UxDi8Esmbu7Y=";
21 mkdir -p $out/lib/${attrs.pname}
22 cp -r . $out/lib/${attrs.pname}/
28 --add-flags "$out/lib/${attrs.pname}/nuget.exe"
34 description = "Package manager for the .NET platform";
35 mainProgram = "nuget";
36 homepage = "https://www.mono-project.com/";
38 NuGet is the package manager for the .NET platform.
39 This derivation bundles the Mono NuGet CLI, which is mostly used by
40 older projects based on .NET Framework.
42 Newer .NET projects can use the dotnet CLI, which has most of this
43 packages functionality built-in.
45 # https://learn.microsoft.com/en-us/nuget/resources/nuget-faq#what-is-the-license-for-nuget-exe-
46 license = licenses.mit;
47 sourceProvenance = [ sourceTypes.binaryBytecode ];
48 maintainers = [ maintainers.mdarocha ];
49 inherit (mono.meta) platforms;