summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-07-01 20:20:19 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-07-01 20:23:19 +0200
commitba4ddf51efe55707eac722f5bf00c12f250864ff (patch)
treeeb267d856fbafb298b1c406cba5efa56be8a993c /pkgs/development/ocaml-modules
parent9a97c3c7aed398d1d86f93a817f3cdf7ea1a3d85 (diff)
downloadnixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar.gz
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar.bz2
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar.lz
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar.xz
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.tar.zst
nixlib-ba4ddf51efe55707eac722f5bf00c12f250864ff.zip
ocaml-uri: 1.9.0 -> 1.9.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/uri/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix
index 41cd2f64823e..03620d05f54d 100644
--- a/pkgs/development/ocaml-modules/uri/default.nix
+++ b/pkgs/development/ocaml-modules/uri/default.nix
@@ -1,25 +1,27 @@
-{ stdenv, fetchzip, ocaml, findlib, re, sexplib, stringext }:
+{ stdenv, fetchzip, ocaml, findlib, re, sexplib, stringext, ounit }:
 
 assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
 
-let version = "1.9.0"; in
+let version = "1.9.1"; in
 
 stdenv.mkDerivation {
   name = "ocaml-uri-${version}";
 
   src = fetchzip {
     url = "https://github.com/mirage/ocaml-uri/archive/v${version}.tar.gz";
-    sha256 = "13vbv6q7npl2bvvqfw03mav90jcrrvjbdpdp4y8mcjz0iax5ww9b";
+    sha256 = "0v3jxqgyi4kj92r3x83rszfpnvvzy9lyb913basch4q64yka3w85";
   };
 
-  buildInputs = [ ocaml findlib ];
+  buildInputs = [ ocaml findlib ounit ];
   propagatedBuildInputs = [ re sexplib stringext ];
 
-  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
   buildPhase = ''
     ocaml setup.ml -build
     ocaml setup.ml -doc
   '';
+  doCheck = true;
+  checkPhase = "ocaml setup.ml -test";
   installPhase = "ocaml setup.ml -install";
 
   createFindlibDestdir = true;