libwebsockets: disable -Werror
Doesn't make sense to enable that in nixpkgs.
This commit is contained in:
parent
14d5488221
commit
d9d51eec4f
1 changed files with 1 additions and 2 deletions
|
@ -32,13 +32,12 @@ let
|
||||||
"-DLWS_WITH_PLUGINS=ON"
|
"-DLWS_WITH_PLUGINS=ON"
|
||||||
"-DLWS_WITH_IPV6=ON"
|
"-DLWS_WITH_IPV6=ON"
|
||||||
"-DLWS_WITH_SOCKS5=ON"
|
"-DLWS_WITH_SOCKS5=ON"
|
||||||
|
"-DDISABLE_WERROR=ON"
|
||||||
# Required since v4.2.0
|
# Required since v4.2.0
|
||||||
"-DLWS_BUILD_HASH=no_hash"
|
"-DLWS_BUILD_HASH=no_hash"
|
||||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DLWS_WITHOUT_TESTAPPS=ON"
|
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DLWS_WITHOUT_TESTAPPS=ON"
|
||||||
++ lib.optional withExternalPoll "-DLWS_WITH_EXTERNAL_POLL=ON";
|
++ lib.optional withExternalPoll "-DLWS_WITH_EXTERNAL_POLL=ON";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=unused-but-set-variable";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm -r ${placeholder "out"}/share/libwebsockets-test-server
|
rm -r ${placeholder "out"}/share/libwebsockets-test-server
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue