2021-04-25 16:20:29 +02:00
|
|
|
{ buildDunePackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, asn1-combinators
|
|
|
|
, uri
|
|
|
|
, base64
|
|
|
|
, logs
|
|
|
|
, fmt
|
|
|
|
, lwt
|
|
|
|
, mirage-crypto
|
2021-12-30 11:05:06 +01:00
|
|
|
, mirage-crypto-ec
|
2021-04-25 16:20:29 +02:00
|
|
|
, mirage-crypto-pk
|
|
|
|
, mirage-crypto-rng
|
|
|
|
, x509
|
|
|
|
, yojson
|
|
|
|
, ounit
|
|
|
|
, ptime
|
|
|
|
, domain-name
|
2021-12-30 11:05:06 +01:00
|
|
|
, cstruct
|
2021-04-25 16:20:29 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "letsencrypt";
|
2021-12-30 11:05:06 +01:00
|
|
|
version = "0.4.1";
|
2021-04-25 16:20:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
|
2021-12-30 11:05:06 +01:00
|
|
|
sha256 = "f90875f5c9bdcab4c8be5ec7ebe9ea763030fa708e02857300996bb16e7c2070";
|
2021-04-25 16:20:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fmt
|
|
|
|
ptime
|
|
|
|
domain-name
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
logs
|
|
|
|
yojson
|
|
|
|
lwt
|
|
|
|
base64
|
|
|
|
mirage-crypto
|
2021-12-30 11:05:06 +01:00
|
|
|
mirage-crypto-ec
|
2021-04-25 16:20:29 +02:00
|
|
|
mirage-crypto-pk
|
|
|
|
asn1-combinators
|
|
|
|
x509
|
|
|
|
uri
|
2021-12-30 11:05:06 +01:00
|
|
|
cstruct
|
2021-04-25 16:20:29 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ACME implementation in OCaml";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
|
|
homepage = "https://github.com/mmaker/ocaml-letsencrypt";
|
|
|
|
};
|
|
|
|
}
|