1{ buildDunePackage
2, lib
3, fetchurl
4, asn1-combinators
5, uri
6, base64
7, logs
8, fmt
9, lwt
10, mirage-crypto
11, mirage-crypto-ec
12, mirage-crypto-pk
13, x509
14, yojson
15, ounit
16, ptime
17, domain-name
18, cstruct
19}:
20
21buildDunePackage rec {
22 pname = "letsencrypt";
23 version = "0.5.1";
24
25 src = fetchurl {
26 url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-${version}.tbz";
27 hash = "sha256-uQOHpdyPg5kms+negxpQMxfhow6auZ0ipt5ksoXYo1w=";
28 };
29
30 minimalOCamlVersion = "4.08";
31 duneVersion = "3";
32
33 buildInputs = [
34 fmt
35 ptime
36 domain-name
37 ];
38
39 propagatedBuildInputs = [
40 logs
41 yojson
42 lwt
43 base64
44 mirage-crypto
45 mirage-crypto-ec
46 mirage-crypto-pk
47 asn1-combinators
48 x509
49 uri
50 cstruct
51 ];
52
53 doCheck = true;
54 checkInputs = [ ounit ];
55
56 meta = {
57 description = "ACME implementation in OCaml";
58 license = lib.licenses.bsd2;
59 maintainers = [ lib.maintainers.sternenseemann ];
60 homepage = "https://github.com/mmaker/ocaml-letsencrypt";
61 };
62}