Archived: Use flake-templates#ocaml
OCaml + Nix template
Setup reproducable and lightweight OCaml dev environment with opam2nix.
This template provides OCaml-LSP and ocamlformat for development.
Use direnv and dune exec it-is-test
, or run nix-shell --run "dune exec it-is-test"
- add
pkg
todepends
(ordepexts
) intest.opam
, - add
pkg
totestPackages
innix/default.nix
if it is for test, - run
nix-shell default.nix -A resolve
, - reload shell.