Turn Dune-based OCaml projects into Nix derivations.
dune2nix parses Dune's lockfiles fully at Nix eval time, which gives us: no
codegen, no
Import From Derivation (IFD),
no hardcoded hash.
The version of Dune included in the current Nixpkgs release (25.11) has critical
bugs related to lockfile handling. dune2nix provides an optional overlay that
uses the latest build that address these issues. For more details, see
./nix/overlays.nix.
There is a minimal demo project that uses
janestreet/core in
./tests/demo.
dune2nix is authored by Anterior, based in NYC, USA.
We’re hiring! If you got this far, e-mail us at hiring+oss@anterior.com and mention this project.
The code is available under the GPLv3 license (not later).
See the LICENSE file.