forked from mirrors/nixpkgs
go: merge postConfigure/postBuild into empty buildPhase
This commit is contained in:
parent
0ec77e3f73
commit
0197bfeeea
|
@ -116,7 +116,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
# this is compiled into the binary
|
# this is compiled into the binary
|
||||||
export GOROOT_FINAL=$out/share/go
|
export GOROOT_FINAL=$out/share/go
|
||||||
|
@ -129,10 +130,11 @@ stdenv.mkDerivation rec {
|
||||||
export CC=${buildPackages.stdenv.cc}/bin/cc
|
export CC=${buildPackages.stdenv.cc}/bin/cc
|
||||||
''}
|
''}
|
||||||
ulimit -a
|
ulimit -a
|
||||||
'';
|
|
||||||
|
|
||||||
postBuild = ''
|
pushd src
|
||||||
(cd src && ./make.bash)
|
./make.bash
|
||||||
|
popd
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
|
|
@ -116,7 +116,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
|
||||||
|
|
||||||
postConfigure = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
export GOCACHE=$TMPDIR/go-cache
|
export GOCACHE=$TMPDIR/go-cache
|
||||||
# this is compiled into the binary
|
# this is compiled into the binary
|
||||||
export GOROOT_FINAL=$out/share/go
|
export GOROOT_FINAL=$out/share/go
|
||||||
|
@ -129,10 +130,11 @@ stdenv.mkDerivation rec {
|
||||||
export CC=${buildPackages.stdenv.cc}/bin/cc
|
export CC=${buildPackages.stdenv.cc}/bin/cc
|
||||||
''}
|
''}
|
||||||
ulimit -a
|
ulimit -a
|
||||||
'';
|
|
||||||
|
|
||||||
postBuild = ''
|
pushd src
|
||||||
(cd src && ./make.bash)
|
./make.bash
|
||||||
|
popd
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue