openconnect: disable useDefaultExternalBrowser when cross
xdg-utils depends on perl packages and those don't cross-compile
This commit is contained in:
parent
135ac51fbf
commit
a81a9cbf12
@ -15,7 +15,7 @@
|
||||
, zlib
|
||||
, vpnc-scripts
|
||||
, PCSC
|
||||
, useDefaultExternalBrowser ? true
|
||||
, useDefaultExternalBrowser ? stdenv.isLinux && stdenv.buildPlatform == stdenv.hostPlatform # xdg-utils doesn't cross-compile
|
||||
, xdg-utils
|
||||
, autoreconfHook
|
||||
}:
|
||||
@ -35,7 +35,7 @@ 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 && useDefaultExternalBrowser) xdg-utils;
|
||||
++ lib.optional useDefaultExternalBrowser xdg-utils;
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user