3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/odoc/default.nix

31 lines
806 B
Nix
Raw Normal View History

2018-09-16 05:43:10 +01:00
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, bos, cmdliner, doc-ock-html, doc-ock-xml
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-odoc-${version}";
version = "1.2.0";
src = fetchFromGitHub {
owner = "ocaml";
repo = "odoc";
rev = "v${version}";
sha256 = "0ixnhfpm1nw4bvjj8qhcyy283pdr5acqpg5wxwq3n1l4mad79cgh";
};
buildInputs = [ ocaml findlib dune cmdliner ];
propagatedBuildInputs = [ bos doc-ock-html doc-ock-xml ];
configurePhase = "ocaml bin/set-etc bin/odoc_etc.ml $out/etc/odoc";
2018-09-16 05:43:10 +01:00
inherit (dune) installPhase;
meta = {
description = "A documentation generator for OCaml";
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
inherit (src.meta) homepage;
};
}