/ocaml-nix-template

Template for reproducable and lightweight OCaml dev environment using Nix

Primary LanguageNixMIT LicenseMIT

Archived: Use flake-templates#ocaml


OCaml + Nix template

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

  1. add pkg to depends (or depexts) in test.opam,
  2. add pkg to testPackages in nix/default.nix if it is for test,
  3. run nix-shell default.nix -A resolve,
  4. reload shell.