gotools: fix the path in the setup-hook

This commit is contained in:
Wael M. Nasreddine 2020-01-20 21:09:11 -08:00 committed by Frederik Rietdijk
parent 2ba2b0cf23
commit 1f54afb299
1 changed files with 2 additions and 3 deletions

View File

@ -40,9 +40,8 @@ buildGoModule rec {
# Set GOTOOLDIR for derivations adding this to buildInputs # Set GOTOOLDIR for derivations adding this to buildInputs
postInstall = '' postInstall = ''
mkdir -p $out/nix-support mkdir -p $out/nix-support
substituteAll ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook.tmp substitute ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook \
cat $out/nix-support/setup-hook.tmp >> $out/nix-support/setup-hook --subst-var-by bin $out
rm $out/nix-support/setup-hook.tmp
''; '';
# Do not copy this without a good reason for enabling # Do not copy this without a good reason for enabling