about summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/ocamlmod
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-10-13 20:10:51 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-10-14 07:31:13 +0000
commit0bd108d2ceb9f2405a92f2db1bb019968e950e0e (patch)
tree6dd1c38bdec4f93eb42bf002023b5ad2a19705b8 /pkgs/development/tools/ocaml/ocamlmod
parent07bc859e9acec3cc6f7a8129e4b05a7584fef209 (diff)
downloadnixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar.gz
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar.bz2
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar.lz
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar.xz
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.tar.zst
nixlib-0bd108d2ceb9f2405a92f2db1bb019968e950e0e.zip
ocamlmod: 0.0.8 -> 0.0.9
Diffstat (limited to 'pkgs/development/tools/ocaml/ocamlmod')
-rw-r--r--pkgs/development/tools/ocaml/ocamlmod/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/tools/ocaml/ocamlmod/default.nix b/pkgs/development/tools/ocaml/ocamlmod/default.nix
index b24be7ba6285..74dee630d295 100644
--- a/pkgs/development/tools/ocaml/ocamlmod/default.nix
+++ b/pkgs/development/tools/ocaml/ocamlmod/default.nix
@@ -1,20 +1,24 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
 
 stdenv.mkDerivation rec {
   name = "ocamlmod-${version}";
-  version = "0.0.8";
+  version = "0.0.9";
 
   src = fetchurl {
-    url = "http://forge.ocamlcore.org/frs/download.php/1544/${name}.tar.gz";
-    sha256 = "1w0w8lfyymvk300dv13gvhrddpcyknvyp4g2yvq2vaw7khkhjs9g";
+    url = "https://forge.ocamlcore.org/frs/download.php/1702/ocamlmod-0.0.9.tar.gz";
+    sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild ];
+  buildInputs = [ ocaml findlib ocamlbuild ounit ];
 
-  configurePhase = "ocaml setup.ml -configure --prefix $out";
+  configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
   buildPhase     = "ocaml setup.ml -build";
   installPhase   = "ocaml setup.ml -install";
 
+  doCheck = true;
+
+  checkPhase = "ocaml setup.ml -test";
+
   dontStrip = true;
 
   meta = {