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-08-05 21:33:18 +00:00
|
|
|
version = "0.14.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-08-05 21:33:18 +00:00
|
|
|
sha256 = "9b42f34171261b2193ee662f096566c48c48e087949c186c288f90c9b3b9f498";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|