summary refs log tree commit diff
path: root/pkgs/applications/misc/stog/default.nix
blob: 8be792c673c02e4ee49cdd2aaff2818bf5d1f0ec (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
28
29
30
31
{ stdenv, fetchFromGitHub, ocaml, findlib, ocf, ptime,
  uutf, uri, ppx_blob, xtmpl, ocaml_lwt, higlo, camlp4, omd
}:

stdenv.mkDerivation rec {
  name = "stog-${version}";
  version = "0.17.0";
  src = fetchFromGitHub {
    owner = "zoggy";
    repo = "stog";
    rev = "release-${version}";
    sha256 = "06fnl3im0rycn05w39adfmm7w4s8l3jrj43h8f8h3b56grh21x0d";
  };

  buildInputs = [ ocaml camlp4 uutf ];
  propagatedBuildInputs = [ findlib omd ppx_blob ocf ptime uri xtmpl ocaml_lwt higlo ];

  createFindlibDestdir = true;

  patches = [ ./install.patch ];

  meta = with stdenv.lib; {
    description = "XML documents and web site compiler";
    homepage = https://zoggy.github.io/stog/;
    license = licenses.lgpl3;
    platforms = ocaml.meta.platforms or [];
    maintainers = with maintainers; [ regnat ];
  };
}