@@ -1,29 +1,24 @@
1−{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
2−
3−stdenv.mkDerivation rec {
1+{ stdenv, fetchFromGitHub, buildDunePackage, ocp-build, ocp-indent, cmdliner, re, }:
42
3+buildDunePackage rec {
4+ pname = "ocp-index";
55 version = "1.1.9";
6− name = "ocaml${ocaml.version}-ocp-index-${version}";
76
87 src = fetchFromGitHub {
98 owner = "OCamlPro";
10− repo = "ocp-index";
9+ repo = pname;
1110 rev = version;
1211 sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
1312 };
1413
15− buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
16− propagatedBuildInputs = [ ocp-indent ];
17−
18− buildPhase = "dune build -p ocp-index";
14+ buildInputs = [ ocp-build cmdliner re ];
1915
20− inherit (dune) installPhase;
16+ propagatedBuildInputs = [ ocp-indent ];
2117
2218 meta = {
2319 homepage = http://typerex.ocamlpro.com/ocp-index.html;
2420 description = "A simple and light-weight documentation extractor for OCaml";
2521 license = stdenv.lib.licenses.lgpl3;
26− platforms = ocaml.meta.platforms or [];
2722 maintainers = with stdenv.lib.maintainers; [ vbgl ];
2823 };
2924}