about summary refs log tree commit diff
path: root/logbook.nix
blob: dc3f5489ee5a5103efff1c187d76805ae4f118a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ buildDunePackage, ocaml_lwt, jingoo, ptime, angstrom, astring, cow, odoc }:

buildDunePackage rec {
  version = "0.3";
  pname = "logbook";

  src = ./.;

  nativeBuildInputs = [ odoc ];
  buildInputs = [ cow ocaml_lwt jingoo ];
  propagatedBuildInputs = [ ptime angstrom astring ];

  postBuild = "dune build @doc";
  postInstall = ''
    mkdir -p $out/doc/logbook/html
    cp -r _build/default/_doc/_html/* $out/doc/logbook/html
  '';

  useDune2 = true;
}