Nymphium / ocaml-nix-template

Template for reproducable and lightweight OCaml dev environment using Nix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Template for reproducable and lightweight OCaml dev environment using Nix

License:MIT License


Languages

Language:Nix 98.2%Language:Shell 1.5%Language:OCaml 0.3%