go_1_11: split into install/check phase

For cross compilation we want to skip installCheckPhase.
This commit is contained in:
Jörg Thalheim 2018-11-20 09:37:20 +00:00 committed by Robin Gloster
parent 60c6dc3f5e
commit 416d8928b2

@ -160,8 +160,17 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
runHook preInstall
cp -r . $GOROOT
( cd $GOROOT/src && ./all.bash )
( cd $GOROOT/src && ./make.bash )
runHook postInstall
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preCheck
( cd $GOROOT/src && ./run.bash --no-rebuild)
runHook postCheck
'';
preFixup = ''