summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-03-11 23:05:40 +0100
committerRick van Schijndel <rol3517@gmail.com>2021-03-11 23:09:31 +0100
commit03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d (patch)
tree5d60cf4e8031e6297fc07c65d2709c86b197505a /pkgs
parent17a9f368e3519041a360285ce7a845ee36623b7d (diff)
downloadnixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar.gz
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar.bz2
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar.lz
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar.xz
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.tar.zst
nixpkgs-03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d.zip
libwebsockets: improve cross-compilation support
Building works on aarch64-multiplatform:

- libwebsockets_3_1
- libwebsockets_3_2
- libwebsockets_4_0
- libwebsockets_4_1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/libwebsockets/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libwebsockets/default.nix b/pkgs/development/libraries/libwebsockets/default.nix
index 33c1cecfbc8..f88f5614cc5 100644
--- a/pkgs/development/libraries/libwebsockets/default.nix
+++ b/pkgs/development/libraries/libwebsockets/default.nix
@@ -20,7 +20,7 @@ let
       "-DLWS_WITH_PLUGINS=ON"
       "-DLWS_WITH_IPV6=ON"
       "-DLWS_WITH_SOCKS5=ON"
-    ];
+    ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DLWS_WITHOUT_TESTAPPS=ON";
 
     NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=unused-but-set-variable";