go: do not wrap with go get
tools
See: https://github.com/NixOS/nixpkgs/issues/46603
These tools are not required for `buildGoPackage`, while
significantly affecting closure size and build time.
This essentially reverts 458895db33
.
This commit is contained in:
parent
e2d857a332
commit
f969e6e474
3 changed files with 6 additions and 24 deletions
|
@ -1,8 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, procps
|
, perl, which, pkgconfig, patch, procps, pcre, cacert, llvm, Security, Foundation }:
|
||||||
, pcre, cacert, llvm
|
|
||||||
, Security, Foundation
|
|
||||||
, makeWrapper, git, subversion, mercurial, bazaar }:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -37,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||||
GOCACHE = "off";
|
GOCACHE = "off";
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# perl is used for testing go vet
|
||||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper procps ];
|
nativeBuildInputs = [ perl which pkgconfig patch procps ];
|
||||||
buildInputs = [ cacert pcre ]
|
buildInputs = [ cacert pcre ]
|
||||||
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
||||||
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
||||||
|
@ -165,9 +162,6 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r . $GOROOT
|
cp -r . $GOROOT
|
||||||
( cd $GOROOT/src && ./all.bash )
|
( cd $GOROOT/src && ./all.bash )
|
||||||
|
|
||||||
# (https://github.com/golang/go/wiki/GoGetTools)
|
|
||||||
wrapProgram $out/share/go/bin/go --prefix PATH ":" "${stdenv.lib.makeBinPath [ git subversion mercurial bazaar ]}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, procps
|
, perl, which, pkgconfig, patch, procps, pcre, cacert, llvm, Security, Foundation }:
|
||||||
, pcre, cacert, llvm
|
|
||||||
, Security, Foundation
|
|
||||||
, makeWrapper, git, subversion, mercurial, bazaar }:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -37,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||||
GOCACHE = "off";
|
GOCACHE = "off";
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# perl is used for testing go vet
|
||||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper procps ];
|
nativeBuildInputs = [ perl which pkgconfig patch procps ];
|
||||||
buildInputs = [ cacert pcre ]
|
buildInputs = [ cacert pcre ]
|
||||||
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
||||||
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
||||||
|
@ -171,9 +168,6 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r . $GOROOT
|
cp -r . $GOROOT
|
||||||
( cd $GOROOT/src && ./all.bash )
|
( cd $GOROOT/src && ./all.bash )
|
||||||
|
|
||||||
# (https://github.com/golang/go/wiki/GoGetTools)
|
|
||||||
wrapProgram $out/share/go/bin/go --prefix PATH ":" "${stdenv.lib.makeBinPath [ git subversion mercurial bazaar ]}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, procps
|
, perl, which, pkgconfig, patch, procps, pcre, cacert, llvm, Security, Foundation }:
|
||||||
, pcre, cacert, llvm
|
|
||||||
, Security, Foundation
|
|
||||||
, makeWrapper, git, subversion, mercurial, bazaar }:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -35,7 +32,7 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# perl is used for testing go vet
|
||||||
nativeBuildInputs = [ perl which pkgconfig patch makeWrapper procps ];
|
nativeBuildInputs = [ perl which pkgconfig patch procps ];
|
||||||
buildInputs = [ cacert pcre ]
|
buildInputs = [ cacert pcre ]
|
||||||
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
++ optionals stdenv.isLinux [ stdenv.cc.libc.out ]
|
||||||
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
++ optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
|
||||||
|
@ -165,9 +162,6 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r . $GOROOT
|
cp -r . $GOROOT
|
||||||
( cd $GOROOT/src && ./all.bash )
|
( cd $GOROOT/src && ./all.bash )
|
||||||
|
|
||||||
# (https://github.com/golang/go/wiki/GoGetTools)
|
|
||||||
wrapProgram $out/share/go/bin/go --prefix PATH ":" "${stdenv.lib.makeBinPath [ git subversion mercurial bazaar ]}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
|
|
Loading…
Reference in a new issue