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-22 04:17:43 +01:00
committed by Robin Gloster
parent 60c6dc3f5e
commit 416d8928b2
+10 -1
View File
@@ -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 = ''