2021-04-26 19:14:03 +00:00
|
|
|
{ buildDunePackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, asn1-combinators
|
|
|
|
, uri
|
|
|
|
, base64
|
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, lwt
|
|
|
|
, mirage-crypto
|
2021-12-30 13:39:12 +00:00
|
|
|
, mirage-crypto-ec
|
2021-04-26 19:14:03 +00:00
|
|
|
, mirage-crypto-pk
|
|
|
|
, mirage-crypto-rng
|
|
|
|
, x509
|
|
|
|
, yojson
|
|
|
|
, ounit
|
|
|
|
, ptime
|
|
|
|
, domain-name
|
2021-12-30 13:39:12 +00:00
|
|
|
, cstruct
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "letsencrypt";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "0.4.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-+Qh19cm9yrTIvl7H6+nqdjAw+nCOAoVzAJlrsW58IHA=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fmt
|
|
|
|
ptime
|
|
|
|
domain-name
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
logs
|
|
|
|
yojson
|
|
|
|
lwt
|
|
|
|
base64
|
|
|
|
mirage-crypto
|
2021-12-30 13:39:12 +00:00
|
|
|
mirage-crypto-ec
|
2021-04-26 19:14:03 +00:00
|
|
|
mirage-crypto-pk
|
|
|
|
asn1-combinators
|
|
|
|
x509
|
|
|
|
uri
|
2021-12-30 13:39:12 +00:00
|
|
|
cstruct
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ ounit ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ACME implementation in OCaml";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/mmaker/ocaml-letsencrypt";
|
|
|
|
};
|
|
|
|
}
|