diff --git a/pkgs/development/compilers/go/1.1.nix b/pkgs/development/compilers/go/1.1.nix index 14ea73c2384..11640f2393d 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 d5ca3bf812e..8e6f6d3f51e 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 = ''