openconnect: add xdg-utils build dependency (#205543)

libopenconnect >=9.00 added support for a DEFAULT_EXTERNAL_BROWSER build value
that enables support for using xdg-open to spawn an external browser from
consumers of the library such as GNOME/NetworkManager-openconnect. This
functionality is needed to support external browser SAML authentication flows
for various VPN protocols supported by libopenconnect.
This commit is contained in:
Rahul Rameshbabu 2023-01-09 12:12:02 -08:00 committed by GitHub
parent 05972e9778
commit abf4c42e78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -15,6 +15,8 @@
, zlib
, vpnc-scripts
, PCSC
, useDefaultExternalBrowser ? true
, xdg-utils
, autoreconfHook
}:
@ -32,7 +34,8 @@ stdenv.mkDerivation rec {
buildInputs = [ gmp libxml2 stoken zlib (if useOpenSSL then openssl else gnutls) ]
++ lib.optional stdenv.isDarwin PCSC
++ lib.optional stdenv.isLinux p11-kit;
++ lib.optional stdenv.isLinux p11-kit
++ lib.optional (stdenv.isLinux && useDefaultExternalBrowser) xdg-utils;
nativeBuildInputs = [ pkg-config autoreconfHook ];
meta = with lib; {

View file

@ -26,6 +26,3 @@ in rec {
useOpenSSL = true;
};
}