From 8677a22dd5eac37089a34b41caa6ffbc06ce1bc2 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 17 Nov 2013 13:31:11 +0000 Subject: [PATCH] Fixes go 1.1.2 compilation on OSX Maverick Apparently Apple thinks that faking gcc wiht a clang stub but not providing a compatile libgcc.a is not going to cause any issues. They really do hate GPL. --- pkgs/development/compilers/go/1.1-darwin.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/go/1.1-darwin.nix b/pkgs/development/compilers/go/1.1-darwin.nix index 2cbb8d49611..5b17f56ac37 100644 --- a/pkgs/development/compilers/go/1.1-darwin.nix +++ b/pkgs/development/compilers/go/1.1-darwin.nix @@ -45,6 +45,11 @@ stdenv.mkDerivation { installPhase = '' mkdir -p "$out/bin" + + # CGO is broken on Maverick. See: http://code.google.com/p/go/issues/detail?id=5926 + # Reevaluate once go 1.1.3 is out + export CGO_ENABLED=0 + export GOROOT="$(pwd)/" export GOBIN="$out/bin" export PATH="$GOBIN:$PATH"