git.iko.soy/typeable/nixpkgs
on master help sign in
go1.8: patch test to work with recent tzdata
commit2ffda66f11bfd7f12271ac44ac7010148f73a085 authorDan Peebles <pumpkin@me.com> dateWed 15 Mar 2017, 15:16 (10 years ago) parente6a5ab8
1 file changed+7−5
pkgs/development/compilers/go/1.8.nix+7−5
pkgs/development/compilers/go/1.8.nix+7−5
@@ -80,11 +80,6 @@ stdenv.mkDerivation rec {
8080 '' + optionalString stdenv.isLinux ''
8181 sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
8282 '' + optionalString stdenv.isDarwin ''
83−
84− # Disabling `format_test.go` because it fails on Darwin for an
85− # unknown reason see: https://github.com/NixOS/nixpkgs/pull/23122#issuecomment-282188727
86− rm src/time/format_test.go
87−
8883 substituteInPlace src/race.bash --replace \
8984 "sysctl machdep.cpu.extfeatures | grep -qv EM64T" true
9085 sed -i 's,strings.Contains(.*sysctl.*,true {,' src/cmd/dist/util.go
@@ -115,6 +110,13 @@ stdenv.mkDerivation rec {
115110 ./cacert-1.8.patch
116111 ./creds-test.patch
117112 ./remove-test-pie-1.8.patch
113+
114+ # This test checks for the wrong thing with recent tzdata. It's been fixed in master but the patch
115+ # works fine here for now.
116+ (fetchpatch {
117+ url = "https://github.com/golang/go/commit/91563ced5897faf729a34be7081568efcfedda31.patch";
118+ sha256 = "1ny5l3f8a9dpjjrnjnsplb66308a0x13sa0wwr4j6yrkc8j4qxqi";
119+ })
118120 ];
119121
120122 SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";