3
0
Fork 0
forked from mirrors/nixpkgs

go: merge postConfigure/postBuild into empty buildPhase

This commit is contained in:
zowoq 2022-08-08 07:06:45 +10:00
parent 0ec77e3f73
commit 0197bfeeea
2 changed files with 12 additions and 8 deletions

View file

@ -116,7 +116,8 @@ stdenv.mkDerivation rec {
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
postConfigure = ''
buildPhase = ''
runHook preBuild
export GOCACHE=$TMPDIR/go-cache
# this is compiled into the binary
export GOROOT_FINAL=$out/share/go
@ -129,10 +130,11 @@ stdenv.mkDerivation rec {
export CC=${buildPackages.stdenv.cc}/bin/cc
''}
ulimit -a
'';
postBuild = ''
(cd src && ./make.bash)
pushd src
./make.bash
popd
runHook postBuild
'';
preInstall = ''

View file

@ -116,7 +116,8 @@ stdenv.mkDerivation rec {
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
postConfigure = ''
buildPhase = ''
runHook preBuild
export GOCACHE=$TMPDIR/go-cache
# this is compiled into the binary
export GOROOT_FINAL=$out/share/go
@ -129,10 +130,11 @@ stdenv.mkDerivation rec {
export CC=${buildPackages.stdenv.cc}/bin/cc
''}
ulimit -a
'';
postBuild = ''
(cd src && ./make.bash)
pushd src
./make.bash
popd
runHook postBuild
'';
preInstall = ''