nixpkgs/pkgs/development/ocaml-modules/odoc/default.nix

27 lines
669 B
Nix
Raw Normal View History

2018-11-03 23:24:52 -07:00
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo
, bos, cmdliner, tyxml
2018-09-15 21:43:10 -07:00
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-odoc-${version}";
2018-11-03 23:24:52 -07:00
version = "1.3.0";
2018-09-15 21:43:10 -07:00
src = fetchFromGitHub {
owner = "ocaml";
repo = "odoc";
2018-11-03 23:24:52 -07:00
rev = version;
sha256 = "0hjan5aj5zk8j8qyagv9r4hqm469mh207cv2m6kxwgnw0c3cz7sy";
2018-09-15 21:43:10 -07:00
};
2018-11-03 23:24:52 -07:00
buildInputs = [ ocaml findlib dune cppo bos cmdliner tyxml ];
2018-09-15 21:43:10 -07: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;
};
}