depot/third_party/nixpkgs/pkgs/development/ocaml-modules/letsencrypt/default.nix
Default email f61cd259d4 Project import generated by Copybara.
GitOrigin-RevId: 82155ff501c7622cb2336646bb62f7624261f6d7
2021-10-01 17:20:50 +08:00

63 lines
1 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, astring
, asn1-combinators
, uri
, rresult
, base64
, logs
, fmt
, lwt
, mirage-crypto
, mirage-crypto-pk
, mirage-crypto-rng
, x509
, yojson
, ounit
, ptime
, domain-name
}:
buildDunePackage rec {
pname = "letsencrypt";
version = "0.3.0";
src = fetchurl {
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
sha256 = "8772b7e6dbda0559a03a7b23b75c1431d42ae09a154eefd64b4c7e23b8d92deb";
};
minimumOCamlVersion = "4.08";
useDune2 = true;
buildInputs = [
fmt
ptime
domain-name
];
propagatedBuildInputs = [
logs
yojson
lwt
base64
mirage-crypto
mirage-crypto-pk
asn1-combinators
x509
uri
rresult
astring
];
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";
};
}