go: add runHooks to bootstrap binary

This commit is contained in:
zowoq 2021-06-04 14:33:26 +10:00
parent b3a05d2ccb
commit 99697d891d

View file

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