go: add runHooks to bootstrap binary

(cherry picked from commit 99697d891de658a5b6ea4bd4ea5ef9acfb62ea13)
This commit is contained in:
zowoq 2021-06-04 14:33:26 +10:00 committed by Maxine Aubrey
parent 1672da0dfd
commit 43a526d41d
No known key found for this signature in database
GPG Key ID: F6FE033DFCB899F7
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ stdenv.mkDerivation rec {
dontStrip = stdenv.hostPlatform.isDarwin;
installPhase = ''
runHook preInstall
mkdir -p $out/share/go $out/bin
mv bin/* $out/bin
cp -r . $out/share/go
@ -37,5 +38,6 @@ stdenv.mkDerivation rec {
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
$out/bin/go
'')}
'' ;
runHook postInstall
'';
}