@@ -0,0 +1,26 @@
1+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, opam }:
2+
3+if !stdenv.lib.versionAtLeast ocaml.version "4.03"
4+then throw "octavius is not available for OCaml ${ocaml.version}" else
5+
6+stdenv.mkDerivation {
7+ name = "ocaml${ocaml.version}-octavius-0.2.0";
8+ src = fetchurl {
9+ url = http://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz;
10+ sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
11+ };
12+
13+ unpackCmd = "tar xjf $src";
14+
15+ buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
16+
17+ inherit (topkg) buildPhase installPhase;
18+
19+ meta = {
20+ description = "Ocamldoc comment syntax parser";
21+ homepage = https://github.com/ocaml-doc/octavius;
22+ license = stdenv.lib.licenses.isc;
23+ maintainers = [ stdenv.lib.maintainers.vbgl ];
24+ inherit (ocaml.meta) platforms;
25+ };
26+}