A minimal OCaml project using Nix, with dependencies and unit tests.
$ nix-shell
> make
> ./hello
Hello, world!
> make test
> make clean
To make your own project from this template:
- Update
dune-project
to your metadata. - Update
lib/dune
,bin/dune
, andtest/dune
. - Add any OCaml dependencies to
shell.nix
,dune-project
, and the relevantdune
files. - Update binary name in
Makefile
and.gitignore
.
Copyright 2023 Fernando Borretti
Released under the Apache 2.0 license.