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