go: add runHooks to bootstrap binary
This commit is contained in:
parent
b3a05d2ccb
commit
99697d891d
|
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue