summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/odoc/default.nix
blob: ef91b110c7ce1100f59f3a9b695a6dffbb8ecd8d (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
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo
, bos, cmdliner, tyxml
}:

stdenv.mkDerivation rec {
  name = "ocaml${ocaml.version}-odoc-${version}";
  version = "1.3.0";
  src = fetchFromGitHub {
    owner = "ocaml";
    repo = "odoc";
    rev = version;
    sha256 = "0hjan5aj5zk8j8qyagv9r4hqm469mh207cv2m6kxwgnw0c3cz7sy";
  };

  buildInputs = [ ocaml findlib dune cppo bos cmdliner tyxml ];

  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;
  };
}