about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-02-13 22:30:23 +0200
committerGitHub <noreply@github.com>2023-02-13 22:30:23 +0200
commit28ec18aeed9c33a613a962bc4e36c368fdd25bd4 (patch)
treec7c44be1b47163d3cea7ca8eb06fab86e690e22d /pkgs/tools
parentd9af2a284e3290ddc51cf2564749a5ad592641f8 (diff)
parenta81a9cbf1226039ab9dc5d410be36a415cd4fbe7 (diff)
Merge pull request #216027 from Artturin/openconnectcrossfix
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/openconnect/common.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/networking/openconnect/common.nix b/pkgs/tools/networking/openconnect/common.nix
index 146a2fc6ea503..e35c8d71cce9d 100644
--- a/pkgs/tools/networking/openconnect/common.nix
+++ b/pkgs/tools/networking/openconnect/common.nix
@@ -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; {