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-02-02 17:09:31 +00:00
|
|
|
version = "1.1.8";
|
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-02-02 17:09:31 +00:00
|
|
|
sha256 = "0hfiwqi60xnwsmj7fmv1sk2gzr6wxdzbgd5zli2xnfrjvb4ydv12";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|