2018-09-05 09:11:47 -07:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
|
2015-01-25 02:31:06 -08:00
|
|
|
|
2018-06-25 22:24:10 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-25 02:31:06 -08:00
|
|
|
|
2019-03-10 06:55:50 -07:00
|
|
|
version = "1.1.9";
|
2018-06-25 22:24:10 -07:00
|
|
|
name = "ocaml${ocaml.version}-ocp-index-${version}";
|
2015-01-25 02:31:06 -08:00
|
|
|
|
2016-11-27 08:54:44 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-index";
|
|
|
|
rev = version;
|
2019-03-10 06:55:50 -07:00
|
|
|
sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
|
2016-11-27 08:54:44 -08:00
|
|
|
};
|
|
|
|
|
2018-09-05 09:11:47 -07:00
|
|
|
buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
|
2018-06-25 22:28:05 -07:00
|
|
|
propagatedBuildInputs = [ ocp-indent ];
|
2015-01-25 02:31:06 -08:00
|
|
|
|
2018-09-05 09:11:47 -07:00
|
|
|
buildPhase = "dune build -p ocp-index";
|
2015-01-25 02:31:06 -08:00
|
|
|
|
2018-09-05 09:11:47 -07:00
|
|
|
inherit (dune) installPhase;
|
2015-01-25 02:31:06 -08:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://typerex.ocamlpro.com/ocp-index.html;
|
|
|
|
description = "A simple and light-weight documentation extractor for OCaml";
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
2015-12-24 09:49:07 -08:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 02:31:06 -08:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|