2015-06-02 10:54:54 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith, ounit }:
|
2015-02-26 07:33:43 +00:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
|
|
|
|
|
2015-06-02 10:54:54 +01:00
|
|
|
let version = "0.1.2"; in
|
2015-02-26 07:33:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-asn1-combinators-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirleft/ocaml-asn1-combinators/archive/${version}.tar.gz";
|
2015-06-02 10:54:54 +01:00
|
|
|
sha256 = "13vpdgcyph4vq3gcp8b16756s4nz3crpxhxfhcqgc1ffz61gc0h5";
|
2015-02-26 07:33:43 +00:00
|
|
|
};
|
|
|
|
|
2015-06-02 10:54:54 +01:00
|
|
|
buildInputs = [ ocaml findlib ounit ];
|
2015-02-26 07:33:43 +00:00
|
|
|
propagatedBuildInputs = [ cstruct zarith ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2015-06-02 10:54:54 +01:00
|
|
|
configureFlags = "--enable-tests";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2015-02-26 07:33:43 +00:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mirleft/ocaml-asn1-combinators;
|
|
|
|
description = "Combinators for expressing ASN.1 grammars in OCaml";
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-09-02 19:29:09 +01:00
|
|
|
broken = stdenv.isi686; # https://github.com/mirleft/ocaml-asn1-combinators/issues/13
|
2015-02-26 07:33:43 +00:00
|
|
|
};
|
|
|
|
}
|