Skip to content

Repository files navigation

dune2nix

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.

Overlay

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.

Demo

There is a minimal demo project that uses janestreet/core in ./tests/demo.

Copyright & License

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.

About

Ingest Dune projects to Nix, fully at eval time. No codegen, no IFD, no hardcoded hash.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages