1{ stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re }:
2
3stdenv.mkDerivation rec {
4 pname = "tyxml";
5 version = "3.6.0";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
10 sha256 = "1rz0f48x8p1m30723rn5v85pp7rd0spr04sd7gzryy99vn3ianga";
11 };
12
13 buildInputs = [ocaml findlib camlp4];
14
15 propagatedBuildInputs = [uutf re ppx_tools markup];
16
17 createFindlibDestdir = true;
18
19 configureFlags = "--enable-syntax";
20
21 meta = with stdenv.lib; {
22 homepage = http://ocsigen.org/tyxml/;
23 description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";
24 license = licenses.lgpl21;
25 platforms = ocaml.meta.platforms or [];
26 maintainers = with maintainers; [
27 gal_bolle vbgl
28 ];
29 };
30
31}