flake-templates#ocaml
Archived: UseNix template
OCaml +Concepts
Setup reproducable and lightweight OCaml dev environment with opam2nix.
This template provides OCaml-LSP and ocamlformat for development.
Setup & Run
Use direnv and dune exec it-is-test
, or run nix-shell --run "dune exec it-is-test"
Add Packages
- 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.