Merge pull request #33996 from pmahoney/acme-client
acme-client: init at 0.1.6
This commit is contained in:
commit
a85ad94897
38
pkgs/tools/networking/acme-client/default.nix
Normal file
38
pkgs/tools/networking/acme-client/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ stdenv
|
||||||
|
, apple_sdk ? null
|
||||||
|
, cacert
|
||||||
|
, defaultCaFile ? "${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
|
, fetchurl
|
||||||
|
, libbsd
|
||||||
|
, libressl
|
||||||
|
, pkgconfig
|
||||||
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "acme-client-${version}";
|
||||||
|
version = "0.1.16";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://kristaps.bsd.lv/acme-client/snapshots/acme-client-portable-${version}.tgz";
|
||||||
|
sha256 = "00q05b3b1dfnfp7sr1nbd212n0mqrycl3cr9lbs51m7ncaihbrz9";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libbsd libressl pkgconfig ]
|
||||||
|
++ optional stdenv.isDarwin apple_sdk.sdk;
|
||||||
|
|
||||||
|
CFLAGS = "-DDEFAULT_CA_FILE='\"${defaultCaFile}\"'";
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
export PREFIX="$out"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://kristaps.bsd.lv/acme-client/;
|
||||||
|
description = "Secure ACME/Let's Encrypt client";
|
||||||
|
platforms = platforms.unix;
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = with maintainers; [ pmahoney ];
|
||||||
|
};
|
||||||
|
}
|
@ -431,6 +431,8 @@ with pkgs;
|
|||||||
|
|
||||||
aescrypt = callPackage ../tools/misc/aescrypt { };
|
aescrypt = callPackage ../tools/misc/aescrypt { };
|
||||||
|
|
||||||
|
acme-client = callPackage ../tools/networking/acme-client { inherit (darwin) apple_sdk; };
|
||||||
|
|
||||||
afew = callPackage ../applications/networking/mailreaders/afew { pythonPackages = python3Packages; };
|
afew = callPackage ../applications/networking/mailreaders/afew { pythonPackages = python3Packages; };
|
||||||
|
|
||||||
afio = callPackage ../tools/archivers/afio { };
|
afio = callPackage ../tools/archivers/afio { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user