2018-06-26 06:28:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, 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
|
|
|
|
2018-06-26 06:24:10 +01:00
|
|
|
version = "1.1.6";
|
|
|
|
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;
|
2018-06-26 06:24:10 +01:00
|
|
|
sha256 = "0p367aphz9w71qbm3y47qwhgqmyai28l96i1ifb6kg7awph5qmj3";
|
2016-11-27 16:54:44 +00:00
|
|
|
};
|
|
|
|
|
2018-06-26 06:24:10 +01:00
|
|
|
buildInputs = [ ocaml findlib jbuilder ocp-build cmdliner re ];
|
2018-06-26 06:28:05 +01:00
|
|
|
propagatedBuildInputs = [ ocp-indent ];
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2018-06-26 06:24:10 +01:00
|
|
|
buildPhase = "jbuilder build -p ocp-index";
|
2015-01-25 10:31:06 +00:00
|
|
|
|
2018-06-26 06:24:10 +01:00
|
|
|
inherit (jbuilder) 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 ];
|
|
|
|
};
|
|
|
|
}
|