2018-09-05 17:11:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2018-06-26 06:24:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2019-03-10 13:55:50 +00:00
|
|
|
version = "1.1.9";
|
2018-06-26 06:24:10 +01:00
|
|
|
name = "ocaml${ocaml.version}-ocp-index-${version}";
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2016-11-27 16:54:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OCamlPro";
|
|
|
|
repo = "ocp-index";
|
|
|
|
rev = version;
|
2019-03-10 13:55:50 +00:00
|
|
|
sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
|
2016-11-27 16:54:44 +00:00
|
|
|
};
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
|
2018-06-26 06:28:05 +01:00
|
|
|
propagatedBuildInputs = [ ocp-indent ];
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildPhase = "dune build -p ocp-index";
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
inherit (dune) installPhase;
|
2015-01-25 10:31:06 +00: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 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-25 10:31:06 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|