@@ -1,25 +1,27 @@
1−{ stdenv, fetchzip, ocaml, findlib, re, sexplib, stringext }:
1+{ stdenv, fetchzip, ocaml, findlib, re, sexplib, stringext, ounit }:
22
33assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
44
5−let version = "1.9.0"; in
5+let version = "1.9.1"; in
66
77stdenv.mkDerivation {
88 name = "ocaml-uri-${version}";
99
1010 src = fetchzip {
1111 url = "https://github.com/mirage/ocaml-uri/archive/v${version}.tar.gz";
12− sha256 = "13vbv6q7npl2bvvqfw03mav90jcrrvjbdpdp4y8mcjz0iax5ww9b";
12+ sha256 = "0v3jxqgyi4kj92r3x83rszfpnvvzy9lyb913basch4q64yka3w85";
1313 };
1414
15− buildInputs = [ ocaml findlib ];
15+ buildInputs = [ ocaml findlib ounit ];
1616 propagatedBuildInputs = [ re sexplib stringext ];
1717
18− configurePhase = "ocaml setup.ml -configure --prefix $out";
18+ configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
1919 buildPhase = ''
2020 ocaml setup.ml -build
2121 ocaml setup.ml -doc
2222 '';
23+ doCheck = true;
24+ checkPhase = "ocaml setup.ml -test";
2325 installPhase = "ocaml setup.ml -install";
2426
2527 createFindlibDestdir = true;