2020-12-09 12:39:15 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, astring, cmdliner, cppo, fpath, result, tyxml
|
2020-12-09 12:39:15 +00:00
|
|
|
, markup, alcotest, yojson, sexplib, jq
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "odoc";
|
2020-12-09 12:39:15 +00:00
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/odoc/releases/download/${version}/odoc-${version}.tbz";
|
|
|
|
sha256 = "0wa87h8q6izcc6rkzqn944vrb3hmc21lf0d0rmr8rhhbcvr66i6j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ astring cmdliner cppo fpath result tyxml ];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
checkInputs = [ alcotest markup yojson sexplib jq ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A documentation generator for OCaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-12-09 12:39:15 +00:00
|
|
|
homepage = "https://github.com/ocaml/odoc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|