buildGoModule: move setup-hook to gotools

the hook is for gotools, doesn't need to live with buildGoModule

- also remove duplicate buildGoPackage hook
This commit is contained in:
zowoq 2022-07-27 09:46:29 +10:00
parent a06ac1c36a
commit a9fb3ea0e7
3 changed files with 1 additions and 2 deletions

View file

@ -1 +0,0 @@
export GOTOOLDIR=@bin@/bin

View file

@ -43,7 +43,7 @@ buildGoModule rec {
# Set GOTOOLDIR for derivations adding this to buildInputs
postInstall = ''
mkdir -p $out/nix-support
substitute ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook \
substitute ${./setup-hook.sh} $out/nix-support/setup-hook \
--subst-var-by bin $out
'';