diff --git a/pkgs/development/libraries/v8/generic.nix b/pkgs/development/libraries/v8/generic.nix index 51637fe6dbd0..349b35549b60 100644 --- a/pkgs/development/libraries/v8/generic.nix +++ b/pkgs/development/libraries/v8/generic.nix @@ -41,6 +41,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ which ]; buildInputs = [ readline python icu ]; + NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow"; + buildFlags = [ "LINK=g++" "-C out" @@ -48,6 +50,10 @@ stdenv.mkDerivation rec { "BUILDTYPE=Release" ]; + postPatch = stdenv.lib.optionalString (!stdenv.cc.isClang) '' + sed -i build/standalone.gyp -e 's,-Wno-format-pedantic,,g' + ''; + enableParallelBuilding = true; installPhase = ''