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