1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 alcotest,
6 asn1-combinators,
7 domain-name,
8 fmt,
9 gmap,
10 kdf,
11 mirage-crypto,
12 mirage-crypto-ec,
13 mirage-crypto-pk,
14 ipaddr,
15 logs,
16 base64,
17 ohex,
18}:
19
20buildDunePackage rec {
21 minimalOCamlVersion = "4.08";
22
23 pname = "x509";
24 version = "1.0.6";
25
26 src = fetchurl {
27 url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-${version}.tbz";
28 hash = "sha256-/IFq4sZei0L6YNkKUHshQEleKNCVrTeyfkwmiuPADWw=";
29 };
30
31 checkInputs = [ alcotest ];
32 propagatedBuildInputs = [
33 asn1-combinators
34 domain-name
35 fmt
36 gmap
37 mirage-crypto
38 mirage-crypto-pk
39 mirage-crypto-ec
40 kdf
41 logs
42 base64
43 ipaddr
44 ohex
45 ];
46
47 doCheck = true;
48
49 meta = with lib; {
50 homepage = "https://github.com/mirleft/ocaml-x509";
51 description = "X509 (RFC5280) handling in OCaml";
52 license = licenses.bsd2;
53 maintainers = with maintainers; [ vbgl ];
54 };
55}