summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/odoc/default.nix
blob: fad5917a5a4fcb8db7c68750d905c833e5077efe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, fetchurl, buildDunePackage, ocaml
, astring, cmdliner, cppo, fpath, result, tyxml
, markup, alcotest, yojson, sexplib, jq
}:

buildDunePackage rec {
  pname = "odoc";
  version = "1.5.2";

  minimumOCamlVersion = "4.02";

  src = fetchurl {
    url = "https://github.com/ocaml/odoc/releases/download/${version}/odoc-${version}.tbz";
    sha256 = "0wa87h8q6izcc6rkzqn944vrb3hmc21lf0d0rmr8rhhbcvr66i6j";
  };

  useDune2 = true;

  buildInputs = [ astring cmdliner cppo fpath result tyxml ];

  checkInputs = [ alcotest markup yojson sexplib jq ];
  doCheck = lib.versionAtLeast ocaml.version "4.05";

  meta = {
    description = "A documentation generator for OCaml";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
    homepage = "https://github.com/ocaml/odoc";
  };
}