2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if !lib.versionAtLeast ocaml.version "4.03"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "octavius is not available for OCaml ${ocaml.version}" else
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-02-05 17:12:51 +00:00
|
|
|
name = "ocaml${ocaml.version}-octavius-0.2.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
|
|
|
|
sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = {
|
|
|
|
description = "Ocamldoc comment syntax parser";
|
|
|
|
homepage = "https://github.com/ocaml-doc/octavius";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|