mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
go: add runHooks to bootstrap binary
This commit is contained in:
parent
b3a05d2ccb
commit
99697d891d
1 changed files with 3 additions and 1 deletions
|
@ -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