go-1.6: fix segfault when using musl

See https://github.com/golang/go/issues/14476
This commit is contained in:
Charles Strahan 2016-03-23 18:11:32 -04:00
parent 9289d383e2
commit c18106a223

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, tzdata, iana_etc, go_1_4, runCommand
, perl, which, pkgconfig, patch
, perl, which, pkgconfig, patch, fetchpatch
, pcre
, Security, Foundation }:
@ -96,6 +96,12 @@ stdenv.mkDerivation rec {
patches = [
./remove-tools-1.5.patch
# Fix bug when using musl (see https://github.com/golang/go/issues/14476)
# Should be fixed by go 1.6.1
(fetchpatch {
url = "https://github.com/golang/go/commit/1439158120742e5f41825de90a76b680da64bf76.patch";
sha256 = "0yixpbx056ns5wgd3f4absgiyc2ymmqk8mkhhz5ja90dvilzxcwd";
})
]
# -ldflags=-s is required to compile on Darwin, see
# https://github.com/golang/go/issues/11994