summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/doc-ock/default.nix
blob: c158f08b0687d408fa9727d7c316a9fc17f26387 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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;
  };
}