2015-10-17 23:13:16 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, asn1-combinators, nocrypto, ounit }:
|
|
|
|
|
2016-01-10 11:31:01 +00:00
|
|
|
let version = "0.5.0"; in
|
2015-10-17 23:13:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-x509-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirleft/ocaml-x509/archive/${version}.tar.gz";
|
2016-01-10 11:31:01 +00:00
|
|
|
sha256 = "0i9618ph4i2yk5dvvhiqhm7wf3qmd6b795mxwff8jf856gb2gdyn";
|
2015-10-17 23:13:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ounit ];
|
|
|
|
propagatedBuildInputs = [ asn1-combinators nocrypto ];
|
|
|
|
|
|
|
|
configureFlags = "--enable-tests";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/mirleft/ocaml-x509;
|
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-10-17 23:13:16 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|