2021-04-18 12:09:33 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2019-08-24 07:02:26 +00:00
|
|
|
, alcotest, cstruct-unix
|
2021-12-30 10:05:06 +00:00
|
|
|
, asn1-combinators, domain-name, fmt, gmap, pbkdf, mirage-crypto, mirage-crypto-ec, mirage-crypto-pk, ipaddr
|
2020-04-13 14:44:58 +00:00
|
|
|
, logs, base64
|
2017-11-27 19:08:40 +00:00
|
|
|
}:
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
buildDunePackage rec {
|
2022-05-14 07:55:12 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-13 14:44:58 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
pname = "x509";
|
2022-10-03 06:22:23 +00:00
|
|
|
version = "0.16.2";
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2018-01-15 04:01:50 +00:00
|
|
|
src = fetchurl {
|
2022-05-14 07:55:12 +00:00
|
|
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-${version}.tbz";
|
2022-10-03 06:22:23 +00:00
|
|
|
sha256 = "sha256-Zf/ZZjUAkeWe04XLmqMKgbxN/qe/Z1mpKM82veXVf2I=";
|
2015-10-17 22:13:16 +00:00
|
|
|
};
|
|
|
|
|
2022-05-14 07:55:12 +00:00
|
|
|
checkInputs = [ alcotest cstruct-unix ];
|
2021-12-30 10:05:06 +00:00
|
|
|
propagatedBuildInputs = [ asn1-combinators domain-name fmt gmap mirage-crypto mirage-crypto-pk mirage-crypto-ec pbkdf logs base64 ipaddr ];
|
2015-10-17 22:13:16 +00:00
|
|
|
|
2020-04-13 14:44:58 +00:00
|
|
|
doCheck = true;
|
2016-11-03 00:15:35 +00:00
|
|
|
|
2019-08-24 07:02:26 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mirleft/ocaml-x509";
|
2015-10-17 22:13:16 +00:00
|
|
|
description = "X509 (RFC5280) handling in OCaml";
|
2016-11-03 00:15:35 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
2015-10-17 22:13:16 +00:00
|
|
|
};
|
|
|
|
}
|