Merge pull request #91970 from LnL7/darwin-libwebsockets

libwebsockets: fix clang build
This commit is contained in:
Daiderd Jordan 2020-07-05 17:52:43 +02:00 committed by GitHub
commit 7b2bdbea75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ let
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
NIX_CFLAGS_COMPILE = "-Wno-error=unused-but-set-variable";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=unused-but-set-variable";
meta = with stdenv.lib; {
description = "Light, portable C library for websockets";