bdd706ccb2
This was suggested by the upstream maintainer [1], and it is a nice simplification. Also change the url to sr.ht as the project has moved there. [1]: https://github.com/NixOS/nixpkgs/pull/88201#issuecomment-633260151
33 lines
749 B
Nix
33 lines
749 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, apple_sdk ? null
|
|
, libbsd
|
|
, libressl
|
|
, pkgconfig
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "acme-client";
|
|
version = "1.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://data.wolfsden.cz/sources/acme-client-${version}.tar.xz";
|
|
sha256 = "0gmdvmyw8a61w08hrxllypf7rpnqg0fxipbk3zmvsxj7m5i6iysj";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libbsd libressl ] ++ optional stdenv.isDarwin apple_sdk.sdk;
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
meta = {
|
|
homepage = "https://sr.ht/~graywolf/acme-client-portable/";
|
|
description = "Secure ACME/Let's Encrypt client";
|
|
platforms = platforms.unix;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ pmahoney ];
|
|
};
|
|
}
|