diff --git a/pkgs/development/ocaml-modules/asn1-combinators/default.nix b/pkgs/development/ocaml-modules/asn1-combinators/default.nix index bb4b5f7b312..41f73b2f834 100644 --- a/pkgs/development/ocaml-modules/asn1-combinators/default.nix +++ b/pkgs/development/ocaml-modules/asn1-combinators/default.nix @@ -1,22 +1,26 @@ -{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith }: +{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith, ounit }: assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01"; -let version = "0.1.1"; in +let version = "0.1.2"; in stdenv.mkDerivation { name = "ocaml-asn1-combinators-${version}"; src = fetchzip { url = "https://github.com/mirleft/ocaml-asn1-combinators/archive/${version}.tar.gz"; - sha256 = "1wl5g2cqd4dk33w0ski6z425cs4sgj980fw0xkwgz1w1xzywh4i2"; + sha256 = "13vpdgcyph4vq3gcp8b16756s4nz3crpxhxfhcqgc1ffz61gc0h5"; }; - buildInputs = [ ocaml findlib ]; + buildInputs = [ ocaml findlib ounit ]; propagatedBuildInputs = [ cstruct zarith ]; createFindlibDestdir = true; + configureFlags = "--enable-tests"; + doCheck = true; + checkTarget = "test"; + meta = { homepage = https://github.com/mirleft/ocaml-asn1-combinators; description = "Combinators for expressing ASN.1 grammars in OCaml";