Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions pkgs/development/ocaml-modules/letsencrypt/app.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildDunePackage
, letsencrypt
, letsencrypt-dns
, cmdliner
, cohttp-lwt-unix
, logs
, fmt
, lwt
, mirage-crypto-rng
, ptime
, bos
, fpath
, randomconv
}:

buildDunePackage {
pname = "letsencrypt-app";

inherit (letsencrypt)
src
version
useDune2
minimumOCamlVersion
;

buildInputs = [
letsencrypt
letsencrypt-dns
cmdliner
cohttp-lwt-unix
logs
fmt
lwt
mirage-crypto-rng
ptime
bos
fpath
randomconv
];

meta = letsencrypt.meta // {
description = "An ACME client implementation of the ACME protocol (RFC 8555) for OCaml";
};
}
25 changes: 2 additions & 23 deletions pkgs/development/ocaml-modules/letsencrypt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
, uri
, rresult
, base64
, cmdliner
, cohttp
, cohttp-lwt
, cohttp-lwt-unix
, zarith
, logs
, fmt
, lwt
Expand All @@ -20,38 +15,25 @@
, x509
, yojson
, ounit
, dns
, dns-tsig
, ptime
, bos
, fpath
, randomconv
, domain-name
}:

buildDunePackage rec {
pname = "letsencrypt";
version = "0.2.5";
version = "0.3.0";

src = fetchurl {
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
sha256 = "6e3bbb5f593823d49e83e698c06cf9ed48818695ec8318507b311ae74731e607";
sha256 = "8772b7e6dbda0559a03a7b23b75c1431d42ae09a154eefd64b4c7e23b8d92deb";
};

minimumOCamlVersion = "4.08";
useDune2 = true;

buildInputs = [
cmdliner
cohttp
cohttp-lwt-unix
zarith
fmt
mirage-crypto-rng
ptime
bos
fpath
randomconv
domain-name
];

Expand All @@ -65,11 +47,8 @@ buildDunePackage rec {
asn1-combinators
x509
uri
dns
dns-tsig
rresult
astring
cohttp-lwt
];

doCheck = true;
Expand Down
35 changes: 35 additions & 0 deletions pkgs/development/ocaml-modules/letsencrypt/dns.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, buildDunePackage
, letsencrypt
, logs
, fmt
, lwt
, dns
, dns-tsig
, domain-name
}:

buildDunePackage {
pname = "letsencrypt-dns";

inherit (letsencrypt)
version
src
useDune2
minimumOCamlVersion
;

propagatedBuildInputs = [
letsencrypt
dns
dns-tsig
domain-name
logs
lwt
fmt
];

meta = letsencrypt.meta // {
description = "A DNS solver for the ACME implementation in OCaml";
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,10 @@ let

letsencrypt = callPackage ../development/ocaml-modules/letsencrypt { };

letsencrypt-app = callPackage ../development/ocaml-modules/letsencrypt/app.nix { };

letsencrypt-dns = callPackage ../development/ocaml-modules/letsencrypt/dns.nix { };

linenoise = callPackage ../development/ocaml-modules/linenoise { };

llvm = callPackage ../development/ocaml-modules/llvm {
Expand Down