d4c80a478b
The upstream version fails to compile due to a missing limits.h include. I added a patch to fix that. I opened a pull request to upstream it too, but the project has moved from GitHub onto sr.ht and now asks me to send a patch to the mailing list. My default email client is not really suitable for that, and getting git-send-email set up will take some work, so in the meantime it is easier to just patch it here.
39 lines
855 B
Nix
39 lines
855 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, bison
|
|
, apple_sdk ? null
|
|
, libbsd
|
|
, libressl
|
|
, pkgconfig
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "acme-client";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graywolf";
|
|
repo = "acme-client-portable";
|
|
rev = "v${version}";
|
|
sha256 = "1p6jbxg00ing9v3jnpvq234w5r2gf8b04k9qm06mn336lcd2lgpl";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook bison pkgconfig ];
|
|
buildInputs = [ libbsd libressl ] ++ optional stdenv.isDarwin apple_sdk.sdk;
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
patches = [ ./limits.h.patch ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/graywolf/acme-client-portable";
|
|
description = "Secure ACME/Let's Encrypt client";
|
|
platforms = platforms.unix;
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ pmahoney ];
|
|
};
|
|
}
|