Something went wrong. Try again.
static-site-generator blogging hypertext ocaml
Something went wrong. Try again.
ocaml-forester README.nix.md
1.0 kB · 31 lines
Markdown
at main
Forester can also be used with nix. To run forester, use nix run sourcehut:~jonsterling/ocaml-forester. If you are working with a Nix flake-based project and want to include Forester as a build input, you can add it to your flake.nix:
{
inputs = {
forester.url = "sourcehut:~jonsterling/ocaml-forester";
forester.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, forester, nixpkgs }:
let
system = "x86_64-linux"; # make sure to change this to your use case!
pkgs = import nixpkgs { inherit system inputs; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = [ forester.packages.${system}.default ];
};
};
}
We also maintain a nix binary cache with cachix See this the forester cachix page for information about how to set it up.