about summary refs log tree commit diff
path: root/pkgs/development/libraries/protobuf
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-01-30 15:23:34 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-01-30 15:26:29 +0100
commitcc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e (patch)
tree8a60465323178762a4b970a9738f3bb6b98d0246 /pkgs/development/libraries/protobuf
parentdb896154d1fae2476be750bdcee5f4f889518479 (diff)
downloadnixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar.gz
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar.bz2
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar.lz
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar.xz
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.tar.zst
nixlib-cc07ec890d0e7b31d7154f1bce6d3ba19aae5a1e.zip
protobuf-3.x: fixup build with default gcc version
/cc @globin a3a0e8fe6.
http://hydra.nixos.org/build/47266085
Diffstat (limited to 'pkgs/development/libraries/protobuf')
-rw-r--r--pkgs/development/libraries/protobuf/generic-v3.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/protobuf/generic-v3.nix b/pkgs/development/libraries/protobuf/generic-v3.nix
index 315608bf2b4f..39cf0a1741d6 100644
--- a/pkgs/development/libraries/protobuf/generic-v3.nix
+++ b/pkgs/development/libraries/protobuf/generic-v3.nix
@@ -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";