@@ -20,8 +20,9 @@ stdenv.mkDerivation rec {
2020
2121 makeFlags = [ "PREFIX=$(out)" ];
2222
23− # added to fix build w/gcc7
24− NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isLinux [ "-Wno-error=pointer-compare" ];
23+ # added to fix build w/gcc7 and clang5
24+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare"
25+ + stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option";
2526
2627 enableParallelBuilding = true;
2728