From 416d8928b26707b16ba85faefaf7a5d7ba667d7a Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Tue, 20 Nov 2018 09:37:20 +0000 Subject: go_1_11: split into install/check phase For cross compilation we want to skip installCheckPhase. --- pkgs/development/compilers/go/1.11.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkgs/development/compilers') diff --git a/pkgs/development/compilers/go/1.11.nix b/pkgs/development/compilers/go/1.11.nix index 795a029a170..9676b92e8c3 100644 --- a/pkgs/development/compilers/go/1.11.nix +++ b/pkgs/development/compilers/go/1.11.nix @@ -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 = '' -- cgit 1.4.1