Skip to content

krgn/Paket2Nix

Repository files navigation

Issue Stats Issue Stats Build status

Paket2Nix

Create nix expressions for projects managed with Paket for ad-hoc packaging of .NET applications and libraries.

Paket2Nix resolves all dependencies via Pakets lock file, collects relevant metadata and finally writes out nix expressions to disk. It also attempts to calculate sha256 checksums for all dependencies and the main package.

Usage:

TLDR;

$ cd /path/to/project/root
$ paket2nix
$ cd ./nix
$ nix-build -K default.nix -A $PROJECT_NAME
$ nix-env -i -f default.nix -A $PROJECT_NAME

Feedback

If you'd like improvements to this tool, please don't hesitate to open an issue or even PR!