@@ -1,34 +1,20 @@
1−{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, markup, ppx_tools_versioned, re
2−, withP4 ? true
3−, camlp4 ? null
4−}:
1+{ lib, buildDunePackage, fetchurl, re, uutf }:
52
6−assert stdenv.lib.versionAtLeast ocaml.version "4.02";
7−
8−stdenv.mkDerivation rec {
3+buildDunePackage rec {
94 pname = "tyxml";
10− version = "4.2.0";
11− name = "ocaml${ocaml.version}-${pname}-${version}";
5+ version = "4.3.0";
126
13− src = fetchzip {
14− url = "https://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
15− sha256 = "1zrkrmxyj5a2cdh4b9zr9anwfk320wv3x0ynxnyxl5za2ix8sld8";
7+ src = fetchurl {
8+ url = "https://github.com/ocsigen/tyxml/releases/download/${version}/tyxml-${version}.tbz";
9+ sha256 = "1hxzppfvsdls2y8qiwvz31hmffzh2hgglf01am1vzf2f31mxf6vf";
1610 };
1711
18− buildInputs = [ ocaml findlib ocamlbuild ppx_tools_versioned markup ]
19− ++ stdenv.lib.optional withP4 camlp4;
20−
2112 propagatedBuildInputs = [ uutf re ];
2213
23− createFindlibDestdir = true;
24−
25− configureFlags = stdenv.lib.optional withP4 "--enable-syntax";
26−
27− meta = with stdenv.lib; {
14+ meta = with lib; {
2815 homepage = http://ocsigen.org/tyxml/;
2916 description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";
3017 license = licenses.lgpl21;
31− platforms = ocaml.meta.platforms or [];
3218 maintainers = with maintainers; [
3319 gal_bolle vbgl
3420 ];