1 { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
3 if !lib.versionAtLeast ocaml.version "4.03"
4 then throw "octavius is not available for OCaml ${ocaml.version}" else
7 name = "ocaml${ocaml.version}-octavius-0.2.0";
9 url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
10 sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
13 buildInputs = [ ocaml findlib ocamlbuild topkg ];
15 inherit (topkg) buildPhase installPhase;
18 description = "Ocamldoc comment syntax parser";
19 homepage = "https://github.com/ocaml-doc/octavius";
20 license = lib.licenses.isc;
21 maintainers = [ lib.maintainers.vbgl ];
22 inherit (ocaml.meta) platforms;