···133133 # Do not copy this without a good reason for enabling
134134 # In this case tools is heavily coupled with go itself and embeds paths.
135135 allowGoReference = true;
136136+137137+ # Set GOTOOLDIR for derivations adding this to buildInputs
138138+ postInstall = ''
139139+ mkdir -p $bin/nix-support
140140+ substituteAll ${../development/go-modules/tools/setup-hook.sh} $bin/nix-support/setup-hook.tmp
141141+ cat $bin/nix-support/setup-hook.tmp >> $bin/nix-support/setup-hook
142142+ rm $bin/nix-support/setup-hook.tmp
143143+ '';
136144 };
137145138146