summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tyxml
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-12-04 10:23:03 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-13 06:38:09 +0000
commit33c2805324061de7658aa959ed6fb2104b76355f (patch)
tree7407687f985f1ab2ae001d4469ee51d40da51471 /pkgs/development/ocaml-modules/tyxml
parent5dc59fbf383956d60eeae8a101f23984f6fa825c (diff)
downloadnixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar.gz
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar.bz2
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar.lz
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar.xz
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.tar.zst
nixlib-33c2805324061de7658aa959ed6fb2104b76355f.zip
ocamlPackages.tyxml: 3.6.0 -> 4.0.1
Diffstat (limited to 'pkgs/development/ocaml-modules/tyxml')
-rw-r--r--pkgs/development/ocaml-modules/tyxml/default.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/tyxml/default.nix b/pkgs/development/ocaml-modules/tyxml/default.nix
index b8c415b75669..49cc56a1db6a 100644
--- a/pkgs/development/ocaml-modules/tyxml/default.nix
+++ b/pkgs/development/ocaml-modules/tyxml/default.nix
@@ -1,14 +1,22 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re }:
+{ stdenv, fetchzip, fetchpatch, ocaml, findlib, ocamlbuild, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re
+}:
+
+assert stdenv.lib.versionAtLeast ocaml.version "4.02";
 
 stdenv.mkDerivation rec {
   pname = "tyxml";
-  version = "3.6.0";
-  name = "${pname}-${version}";
+  version = "4.0.1";
+  name = "ocaml${ocaml.version}-${pname}-${version}";
 
-  src = fetchurl {
+  src = fetchzip {
     url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
-    sha256 = "1rz0f48x8p1m30723rn5v85pp7rd0spr04sd7gzryy99vn3ianga";
-    };
+    sha256 = "1mwkjvl78gvw7pvql5qp64cfjjca6aqsb04999qkllifyicaaq8y";
+  };
+
+  patches = [ (fetchpatch {
+    url = https://github.com/dbuenzli/tyxml/commit/a2bf5ccc0b6e684e7b81274ff19df8d72e2def8d.diff;
+    sha256 = "11sidgiwz3zqw815vlslbfzb456z0lndkh425mlmvnmck4d2v2i3";
+  })];
 
   buildInputs = [ ocaml findlib ocamlbuild camlp4 ];