Templates to quickly bootstrap a repo with nix flakes.
To get started in a existing repo:
nix flake init --template github:d4hines/nix-templates#ocaml
To bootstrap a new repo run:
nix flake new nix-ocaml-example -t github:d4hines/nix-templates#ocaml
We're using the OCaml overlays repo by @anmonteiro to get some of the latest and greatest that hasn't yet made it to nixpkgs. There is also excellent support for static compilation.
In ./nix/generic.nix you'll specify how to build your project and the dependencies you have. Note that you need to change the name (currently set to service) to reflect the actual name of what you're building.