mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
ocamlPackages.ocp-index: use buildDunePackage
This commit is contained in:
parent
90b1563171
commit
d07842589d
@ -1,29 +1,24 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
|
{ stdenv, fetchFromGitHub, buildDunePackage, ocp-build, ocp-indent, cmdliner, re, }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "ocp-index";
|
||||||
version = "1.1.9";
|
version = "1.1.9";
|
||||||
name = "ocaml${ocaml.version}-ocp-index-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "OCamlPro";
|
owner = "OCamlPro";
|
||||||
repo = "ocp-index";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
|
sha256 = "0dq1kap16xfajc6gg9hbiadax782winpvxnr3dkm2ncznnxds37p";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
|
buildInputs = [ ocp-build cmdliner re ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ ocp-indent ];
|
propagatedBuildInputs = [ ocp-indent ];
|
||||||
|
|
||||||
buildPhase = "dune build -p ocp-index";
|
|
||||||
|
|
||||||
inherit (dune) installPhase;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://typerex.ocamlpro.com/ocp-index.html;
|
homepage = http://typerex.ocamlpro.com/ocp-index.html;
|
||||||
description = "A simple and light-weight documentation extractor for OCaml";
|
description = "A simple and light-weight documentation extractor for OCaml";
|
||||||
license = stdenv.lib.licenses.lgpl3;
|
license = stdenv.lib.licenses.lgpl3;
|
||||||
platforms = ocaml.meta.platforms or [];
|
|
||||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user