2021-04-19 03:05:28 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, alcotest, cstruct-unix
|
2021-04-19 03:05:28 +00:00
|
|
|
, asn1-combinators, domain-name, fmt, gmap, pbkdf, rresult, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk
|
2020-04-24 23:36:52 +00:00
|
|
|
, logs, base64
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
|
|
|
pname = "x509";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "4577c2a616bda45cc777869fc44e272397d63a029135a993df8937bcfd6f6c49";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ alcotest cstruct-unix ];
|
2021-04-19 03:05:28 +00:00
|
|
|
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf rresult logs base64 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirleft/ocaml-x509";
|
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|