/nuget2nix

Generates a Nix expression for `buildDotnetModule`

Primary LanguageRustMIT LicenseMIT

nuget2nix

Generates a Nix expression for buildDotnetModule, with support for non nuget.org repos.

Usage

Similar to the nuget-to-nix command available in Nixpkgs, you'll need a directory of packages. This can be achieved with dotnet restore (see here for an example). Optionally, you can specify a path to the NuGet.config file for your package.

Once you have these, the tool can be invoked like so:

$ nuget2nix --directory /path/to/packages <--nuget-config /path/to/NuGet.config>

On completion, the Nix expression to pass to nugetDeps is output to stdout.