2015-06-02 11:54:54 +02:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith, ounit }:
|
2015-02-26 08:33:43 +01:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
|
|
|
|
|
2015-06-02 11:54:54 +02:00
|
|
|
let version = "0.1.2"; in
|
2015-02-26 08:33:43 +01: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 11:54:54 +02:00
|
|
|
sha256 = "13vpdgcyph4vq3gcp8b16756s4nz3crpxhxfhcqgc1ffz61gc0h5";
|
2015-02-26 08:33:43 +01:00
|
|
|
};
|
|
|
|
|
2015-06-02 11:54:54 +02:00
|
|
|
buildInputs = [ ocaml findlib ounit ];
|
2015-02-26 08:33:43 +01:00
|
|
|
propagatedBuildInputs = [ cstruct zarith ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2015-06-02 11:54:54 +02:00
|
|
|
configureFlags = "--enable-tests";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2015-02-26 08:33:43 +01:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mirleft/ocaml-asn1-combinators;
|
|
|
|
description = "Combinators for expressing ASN.1 grammars in OCaml";
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-02-26 08:33:43 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-09-02 20:29:09 +02:00
|
|
|
broken = stdenv.isi686; # https://github.com/mirleft/ocaml-asn1-combinators/issues/13
|
2015-02-26 08:33:43 +01:00
|
|
|
};
|
|
|
|
}
|