···133 # Do not copy this without a good reason for enabling
134 # In this case tools is heavily coupled with go itself and embeds paths.
135 allowGoReference = true;
00000000136 };
137138
···133 # Do not copy this without a good reason for enabling
134 # In this case tools is heavily coupled with go itself and embeds paths.
135 allowGoReference = true;
136+137+ # Set GOTOOLDIR for derivations adding this to buildInputs
138+ postInstall = ''
139+ mkdir -p $bin/nix-support
140+ substituteAll ${../development/go-modules/tools/setup-hook.sh} $bin/nix-support/setup-hook.tmp
141+ cat $bin/nix-support/setup-hook.tmp >> $bin/nix-support/setup-hook
142+ rm $bin/nix-support/setup-hook.tmp
143+ '';
144 };
145146