2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-06-18 07:06:33 +00:00
|
|
|
, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, apple_sdk ? null
|
|
|
|
, libbsd
|
|
|
|
, libressl
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "acme-client";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://data.wolfsden.cz/sources/acme-client-${version}.tar.xz";
|
|
|
|
sha256 = "0gmdvmyw8a61w08hrxllypf7rpnqg0fxipbk3zmvsxj7m5i6iysj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libbsd libressl ] ++ optional stdenv.isDarwin apple_sdk.sdk;
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = {
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://sr.ht/~graywolf/acme-client-portable/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Secure ACME/Let's Encrypt client";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ pmahoney ];
|
|
|
|
};
|
|
|
|
}
|