@@ -1,17 +1,19 @@
1−{ stdenv, fetchzip, ocaml, findlib }:
1+{ stdenv, fetchzip, ocaml, findlib, ounit }:
22
33stdenv.mkDerivation rec {
4− name = "ocaml-re-1.4.0";
4+ name = "ocaml-re-1.4.1";
55
66 src = fetchzip {
77 url = "https://github.com/ocaml/ocaml-re/archive/${name}.tar.gz";
8− sha256 = "1xcfmhjgd7prqx2g1addlrk84xpfafmqnpjkqrvg7mw0hn1p7v2m";
8+ sha256 = "1wmfgazydd20hc796zisqpmsw0sb5lv9g3x77ckmf50v3z8hyhvk";
99 };
1010
11− buildInputs = [ ocaml findlib ];
11+ buildInputs = [ ocaml findlib ounit ];
1212
13− configurePhase = "ocaml setup.ml -configure --prefix $out";
13+ configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
1414 buildPhase = "ocaml setup.ml -build";
15+ doCheck = true;
16+ checkPhase = "ocaml setup.ml -test";
1517 installPhase = "ocaml setup.ml -install";
1618
1719 createFindlibDestdir = true;