protobuf-3.x: fixup build with default gcc version

/cc @globin a3a0e8fe6.
http://hydra.nixos.org/build/47266085
This commit is contained in:
Vladimír Čunát 2017-01-30 15:23:34 +01:00
parent db896154d1
commit cc07ec890d
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -34,7 +34,9 @@ stdenv.mkDerivation rec {
doCheck = true;
NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation";
NIX_CFLAGS_COMPILE = with stdenv.lib;
# gcc before 6 doesn't know this option
optionalString (hasPrefix "gcc-6" stdenv.cc.cc) "-Wno-error=misleading-indentation";
meta = {
description = "Google's data interchange format";