From 03b6aa509a3a3c2fc66b2e3c7d6175d28eec9e9d Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Thu, 11 Mar 2021 23:05:40 +0100 Subject: [PATCH] libwebsockets: improve cross-compilation support Building works on aarch64-multiplatform: - libwebsockets_3_1 - libwebsockets_3_2 - libwebsockets_4_0 - libwebsockets_4_1 --- pkgs/development/libraries/libwebsockets/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";