@@ -1,19 +1,23 @@
1−{ stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf }:
1+{ stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re }:
22
3−stdenv.mkDerivation {
4− name = "tyxml-3.4.0";
3+stdenv.mkDerivation rec {
4+ pname = "tyxml";
5+ version = "3.6.0";
6+ name = "${pname}-${version}";
57
68 src = fetchurl {
7− url = http://github.com/ocsigen/tyxml/archive/3.4.0.tar.gz;
8− sha256 = "10hb0b2j33fjqzmx450ns7dmf4pqmx3gyvr6dk99mghqk13cj5ww";
9+ url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
10+ sha256 = "1rz0f48x8p1m30723rn5v85pp7rd0spr04sd7gzryy99vn3ianga";
911 };
1012
11− buildInputs = [ocaml findlib ocaml_oasis camlp4];
13+ buildInputs = [ocaml findlib camlp4];
1214
13− propagatedBuildInputs = [uutf];
15+ propagatedBuildInputs = [uutf re ppx_tools markup];
1416
1517 createFindlibDestdir = true;
1618
19+ configureFlags = "--enable-syntax";
20+
1721 meta = with stdenv.lib; {
1822 homepage = http://ocsigen.org/tyxml/;
1923 description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";