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-06-16 17:23:12 +00:00
|
|
|
version = "0.16.0";
|
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";
|
|
|
|
sha256 = "sha256:159mhfwsiv08sj0zk7s3k813f0mc9vpziwpf6j9r32y3nizp59k7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +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 ];
|
|
|
|
};
|
|
|
|
}
|