Suffix $PATH in wrapper instead of prefixing

As suffixing makes gomod2nix inherit any system Go compiler.
This commit is contained in:
adisbladis 2022-09-02 21:11:21 +12:00
parent 3de94f1326
commit f09d652b95

View file

@ -42,7 +42,7 @@ buildGoApplication {
--fish <($out/bin/gomod2nix completion fish) \
--zsh <($out/bin/gomod2nix completion zsh)
'' + ''
wrapProgram $out/bin/gomod2nix --prefix PATH : $(dirname $(which go))
wrapProgram $out/bin/gomod2nix --suffix PATH : $(dirname $(which go))
'';
meta = {