summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uri
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-06-02 12:23:50 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-06-02 13:53:17 +0200
commitb812e5f0579a810b1adbd219b8a6d3ace9877e27 (patch)
tree0784943054357ae9e8b617baa45441b7f9c98221 /pkgs/development/ocaml-modules/uri
parenta36326d1974ebb25352d895be08eeaf3be0a9fe6 (diff)
downloadnixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar.gz
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar.bz2
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar.lz
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar.xz
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.tar.zst
nixpkgs-b812e5f0579a810b1adbd219b8a6d3ace9877e27.zip
ocaml-uri: update from 1.7.2 to 1.9.0
Diffstat (limited to 'pkgs/development/ocaml-modules/uri')
-rw-r--r--pkgs/development/ocaml-modules/uri/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix
index a00a2408159..41cd2f64823 100644
--- a/pkgs/development/ocaml-modules/uri/default.nix
+++ b/pkgs/development/ocaml-modules/uri/default.nix
@@ -1,14 +1,15 @@
-{ stdenv, fetchgit, ocaml, findlib, re, sexplib, stringext }:
+{ stdenv, fetchzip, ocaml, findlib, re, sexplib, stringext }:
 
-let version = "1.7.2"; in
+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
+
+let version = "1.9.0"; in
 
 stdenv.mkDerivation {
   name = "ocaml-uri-${version}";
 
-  src = fetchgit {
-    url = https://github.com/mirage/ocaml-uri.git;
-    rev = "refs/tags/v${version}";
-    sha256 = "19rq68dzvqzpqc2zvrk5sj1iklknnyrlbcps2vb8iw4cjlrnnaa1";
+  src = fetchzip {
+    url = "https://github.com/mirage/ocaml-uri/archive/v${version}.tar.gz";
+    sha256 = "13vbv6q7npl2bvvqfw03mav90jcrrvjbdpdp4y8mcjz0iax5ww9b";
   };
 
   buildInputs = [ ocaml findlib ];