summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/ocaml-modules/hex/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/hex/default.nix b/pkgs/development/ocaml-modules/hex/default.nix
index 7a060bd795a0..a9d30f1a9e7e 100644
--- a/pkgs/development/ocaml-modules/hex/default.nix
+++ b/pkgs/development/ocaml-modules/hex/default.nix
@@ -1,17 +1,20 @@
 { stdenv, fetchzip, ocaml, findlib, cstruct }:
 
-let version = "0.2.0"; in
+let version = "1.0.0"; in
 
 stdenv.mkDerivation {
   name = "ocaml-hex-${version}";
 
   src = fetchzip {
     url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz";
-    sha256 = "13vmpxwg5vb2qvkdqz37rx1ya19r9cp4dwylx8jj15mn77hpy7xg";
+    sha256 = "0g4cq4bsksga15fa5ln083gkglawknbnhi2s4k8yk0yi5xngvwm4";
   };
 
   buildInputs = [ ocaml findlib ];
   propagatedBuildInputs = [ cstruct ];
+  configureFlags = "--enable-tests";
+  doCheck = true;
+  checkTarget = "test";
   createFindlibDestdir = true;
 
   meta = {