aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/compilers/go/1.14.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/go/1.14.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/go/1.14.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/compilers/go/1.14.nix b/nixpkgs/pkgs/development/compilers/go/1.14.nix
index 9ee5b6fa624..b467c998c3e 100644
--- a/nixpkgs/pkgs/development/compilers/go/1.14.nix
+++ b/nixpkgs/pkgs/development/compilers/go/1.14.nix
@@ -2,6 +2,7 @@
, perl, which, pkgconfig, patch, procps, pcre, cacert, Security, Foundation
, mailcap, runtimeShell
, buildPackages, pkgsTargetTarget
+, fetchpatch
}:
let
@@ -30,11 +31,11 @@ in
stdenv.mkDerivation rec {
pname = "go";
- version = "1.14.2";
+ version = "1.14.9";
src = fetchurl {
url = "https://dl.google.com/go/go${version}.src.tar.gz";
- sha256 = "0z3zxsnhmsxplnwfw1l9gr6jgglwp50sr3p5njknv9i6jzk89plq";
+ sha256 = "0m2581pi1iid39dd0k81r6zypasr8byc6d75nprapg09ri4ci1y6";
};
# perl is used for testing go vet
@@ -137,6 +138,12 @@ stdenv.mkDerivation rec {
./go-1.9-skip-flaky-20072.patch
./skip-external-network-tests.patch
./skip-nohup-tests.patch
+
+ # fix rare TestDontCacheBrokenHTTP2Conn failure
+ (fetchpatch {
+ url = "https://github.com/golang/go/commit/ea1437a8cdf6bb3c2d2447833a5d06dbd75f7ae4.patch";
+ sha256 = "1lyzy4nf8c34a966vw45j3j7hzpvncq2gqspfxffzkyh17xd8sgy";
+ })
] ++ [
# breaks under load: https://github.com/golang/go/issues/25628
(if stdenv.isAarch32
@@ -186,8 +193,11 @@ stdenv.mkDerivation rec {
export PATH=$(pwd)/bin:$PATH
+ ${optionalString (stdenv.buildPlatform != stdenv.targetPlatform) ''
# Independent from host/target, CC should produce code for the building system.
+ # We only set it when cross-compiling.
export CC=${buildPackages.stdenv.cc}/bin/cc
+ ''}
ulimit -a
'';
@@ -229,8 +239,6 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
- setupHook = ./setup-hook.sh;
-
disallowedReferences = [ goBootstrap ];
meta = with stdenv.lib; {
@@ -238,7 +246,7 @@ stdenv.mkDerivation rec {
homepage = "http://golang.org/";
description = "The Go Programming language";
license = licenses.bsd3;
- maintainers = with maintainers; [ cstrahan orivej mic92 rvolosatovs kalbasit Frostman ];
+ maintainers = teams.golang.members;
platforms = platforms.linux ++ platforms.darwin;
};
}