2020-12-06 14:07:04 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2019-09-23 06:53:20 +01:00
|
|
|
, astring, cmdliner, cppo, fpath, result, tyxml
|
2020-12-06 14:07:04 +00:00
|
|
|
, markup, alcotest, yojson, sexplib, jq
|
2019-09-23 06:53:20 +01:00
|
|
|
}:
|
2018-09-16 05:43:10 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "odoc";
|
2021-07-13 16:52:46 +01:00
|
|
|
version = "1.5.3";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2020-12-06 14:07:04 +00:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/odoc/releases/download/${version}/odoc-${version}.tbz";
|
2021-07-13 16:52:46 +01:00
|
|
|
sha256 = "0idzidmz7y10xkwcf4aih0mdvkipxk1gzi4anhnbbi2q2s0nzdzj";
|
2018-09-16 05:43:10 +01:00
|
|
|
};
|
|
|
|
|
2020-12-06 14:07:04 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-09-23 06:53:20 +01:00
|
|
|
buildInputs = [ astring cmdliner cppo fpath result tyxml ];
|
2018-09-16 05:43:10 +01:00
|
|
|
|
2020-12-06 14:07:04 +00:00
|
|
|
checkInputs = [ alcotest markup yojson sexplib jq ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
|
|
|
|
2018-09-16 05:43:10 +01:00
|
|
|
meta = {
|
|
|
|
description = "A documentation generator for OCaml";
|
2019-09-23 06:53:20 +01:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-12-06 14:07:04 +00:00
|
|
|
homepage = "https://github.com/ocaml/odoc";
|
2018-09-16 05:43:10 +01:00
|
|
|
};
|
|
|
|
}
|