about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/octavius/default.nix
blob: c71c8f35f4ba6895193a0a0eda121169c7122a71 (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
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg }:

if !lib.versionAtLeast ocaml.version "4.03"
then throw "octavius is not available for OCaml ${ocaml.version}" else

stdenv.mkDerivation {
  name = "ocaml${ocaml.version}-octavius-0.2.0";
  src = fetchurl {
    url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz";
    sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml";
  };

  buildInputs = [ ocaml findlib ocamlbuild topkg ];

  inherit (topkg) buildPhase installPhase;

  meta = {
    description = "Ocamldoc comment syntax parser";
    homepage = "https://github.com/ocaml-doc/octavius";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}