Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Template for reproducable and lightweight OCaml dev environment using Nix

License

Notifications You must be signed in to change notification settings

Nymphium/ocaml-nix-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks