summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-25 00:36:20 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-25 00:53:06 +0100
commite368ca20c91843396f0e418537fdd841cd944439 (patch)
tree9d5f03333cad7d2709ed9ae3ce44c0ec00b5e7af /pkgs/development/compilers
parent07bf146b301a3b5ee03e3d9c76c3e310b66da8f5 (diff)
downloadnixlib-e368ca20c91843396f0e418537fdd841cd944439.tar
nixlib-e368ca20c91843396f0e418537fdd841cd944439.tar.gz
nixlib-e368ca20c91843396f0e418537fdd841cd944439.tar.bz2
nixlib-e368ca20c91843396f0e418537fdd841cd944439.tar.lz
nixlib-e368ca20c91843396f0e418537fdd841cd944439.tar.xz
nixlib-e368ca20c91843396f0e418537fdd841cd944439.tar.zst
nixlib-e368ca20c91843396f0e418537fdd841cd944439.zip
Fix old Go versions
http://hydra.nixos.org/build/17432147
http://hydra.nixos.org/build/17439772
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/go/1.1.nix2
-rw-r--r--pkgs/development/compilers/go/1.2.nix2
2 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/go/1.1.nix b/pkgs/development/compilers/go/1.1.nix
index 14ea73c23840..11640f2393d2 100644
--- a/pkgs/development/compilers/go/1.1.nix
+++ b/pkgs/development/compilers/go/1.1.nix
@@ -17,6 +17,8 @@ stdenv.mkDerivation {
 
   buildInputs = [ bison glibc bash makeWrapper ];
 
+  NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
+
   # I'm not sure what go wants from its 'src', but the go installation manual
   # describes an installation keeping the src.
   preUnpack = ''
diff --git a/pkgs/development/compilers/go/1.2.nix b/pkgs/development/compilers/go/1.2.nix
index d5ca3bf812e9..8e6f6d3f51ee 100644
--- a/pkgs/development/compilers/go/1.2.nix
+++ b/pkgs/development/compilers/go/1.2.nix
@@ -16,6 +16,8 @@ stdenv.mkDerivation {
 
   buildInputs = [ bison glibc bash makeWrapper ];
 
+  NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
+
   # I'm not sure what go wants from its 'src', but the go installation manual
   # describes an installation keeping the src.
   preUnpack = ''