depot/third_party/nixpkgs/pkgs/development/ocaml-modules/letsencrypt/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

63 lines
1 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, asn1-combinators
, uri
, base64
, logs
, fmt
, lwt
, mirage-crypto
, mirage-crypto-ec
, mirage-crypto-pk
, mirage-crypto-rng
, x509
, yojson
, ounit
, ptime
, domain-name
, cstruct
}:
buildDunePackage rec {
pname = "letsencrypt";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
hash = "sha256-+Qh19cm9yrTIvl7H6+nqdjAw+nCOAoVzAJlrsW58IHA=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
buildInputs = [
fmt
ptime
domain-name
];
propagatedBuildInputs = [
logs
yojson
lwt
base64
mirage-crypto
mirage-crypto-ec
mirage-crypto-pk
asn1-combinators
x509
uri
cstruct
];
doCheck = true;
nativeCheckInputs = [ ounit ];
meta = {
description = "ACME implementation in OCaml";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.sternenseemann ];
homepage = "https://github.com/mmaker/ocaml-letsencrypt";
};
}