nixpkgs/pkgs/development/ocaml-modules/doc-ock/default.nix
2018-09-24 05:08:37 +00:00

28 lines
698 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, dune, octavius, cppo }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-doc-ock-${version}";
version = "1.2.1";
src = fetchFromGitHub {
owner = "ocaml-doc";
repo = "doc-ock";
rev = "v${version}";
sha256 = "090vprm12jrl55yllk1hdzbsqyr107yjs2qnc49yahdhvnr4h5b7";
};
buildInputs = [ ocaml findlib dune cppo ];
propagatedBuildInputs = [ octavius ];
inherit (dune) installPhase;
meta = {
description = "Extract documentation from OCaml files";
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
inherit (src.meta) homepage;
};
}