2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
2020-06-18 07:06:33 +00:00
|
|
|
, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, apple_sdk ? null
|
|
|
|
, libbsd
|
|
|
|
, libressl
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|