Merge pull request #331214 from tricktron/fix-openconnect-darwin

This commit is contained in:
Sandro 2024-07-31 11:52:38 +02:00 committed by GitHub
commit 4048ba10fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@
, autoreconfHook
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "openconnect";
inherit version src;
@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
"--without-openssl-version-check"
];
buildInputs = [ gmp libxml2 stoken zlib pcsclite (if useOpenSSL then openssl else gnutls) ]
buildInputs = [ gmp libxml2 stoken zlib (if useOpenSSL then openssl else gnutls) ]
++ lib.optional stdenv.isDarwin PCSC
++ lib.optional stdenv.isLinux p11-kit
++ lib.optionals stdenv.isLinux [ p11-kit pcsclite ]
++ lib.optional useDefaultExternalBrowser xdg-utils;
nativeBuildInputs = [ pkg-config autoreconfHook ];