gotools: fix the path in the setup-hook

This commit is contained in:
Wael M. Nasreddine
2020-02-10 20:17:19 +01:00
committed by Frederik Rietdijk
parent 2ba2b0cf23
commit 1f54afb299
+2 -3
View File
@@ -40,9 +40,8 @@ buildGoModule rec {
# Set GOTOOLDIR for derivations adding this to buildInputs
postInstall = ''
mkdir -p $out/nix-support
substituteAll ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook.tmp
cat $out/nix-support/setup-hook.tmp >> $out/nix-support/setup-hook
rm $out/nix-support/setup-hook.tmp
substitute ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook \
--subst-var-by bin $out
'';
# Do not copy this without a good reason for enabling