2016-11-03 01:15:35 +01:00
|
|
|
{stdenv, buildOcaml, fetchFromGitHub, ocaml, findlib, asn1-combinators, nocrypto, ounit, ocaml_oasis, ppx_sexp_conv}:
|
2015-10-18 00:13:16 +02:00
|
|
|
|
2016-11-03 01:15:35 +01:00
|
|
|
buildOcaml rec {
|
|
|
|
name = "x509";
|
|
|
|
version = "0.5.3";
|
2015-10-18 00:13:16 +02:00
|
|
|
|
2016-11-18 14:14:15 +01:00
|
|
|
mininimumSupportedOcamlVersion = "4.02";
|
|
|
|
|
2016-11-03 01:15:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirleft";
|
|
|
|
repo = "ocaml-x509";
|
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "07cc3z6h87460z3f4vz8nlczw5jkc4vjhix413z9x6nral876rn7";
|
2015-10-18 00:13:16 +02:00
|
|
|
};
|
|
|
|
|
2016-11-03 01:15:35 +01:00
|
|
|
buildInputs = [ ocaml ocaml_oasis findlib ounit ppx_sexp_conv ];
|
2015-10-18 00:13:16 +02:00
|
|
|
propagatedBuildInputs = [ asn1-combinators nocrypto ];
|
|
|
|
|
|
|
|
configureFlags = "--enable-tests";
|
2016-11-03 01:15:35 +01:00
|
|
|
configurePhase = "./configure --prefix $out $configureFlags";
|
|
|
|
|
2015-10-18 00:13:16 +02:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2016-11-03 01:15:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-18 00:13:16 +02:00
|
|
|
homepage = https://github.com/mirleft/ocaml-x509;
|
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
2016-11-03 01:15:35 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-10-18 00:13:16 +02:00
|
|
|
};
|
|
|
|
}
|