2021-04-19 03:05:28 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, alcotest, cstruct-unix
|
2021-12-30 13:39:12 +00:00
|
|
|
, asn1-combinators, domain-name, fmt, gmap, pbkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, ipaddr
|
2020-04-24 23:36:52 +00:00
|
|
|
, logs, base64
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pname = "x509";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.16.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-06-16 17:23:12 +00:00
|
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-${version}.tbz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-Zf/ZZjUAkeWe04XLmqMKgbxN/qe/Z1mpKM82veXVf2I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest cstruct-unix ];
|
2021-12-30 13:39:12 +00:00
|
|
|
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf logs base64 ipaddr ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|