From f09d652b959f72128765cb49c6817cf2f63bfeda Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 2 Sep 2022 21:11:21 +1200 Subject: [PATCH] Suffix $PATH in wrapper instead of prefixing As suffixing makes gomod2nix inherit any system Go compiler. --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index bb36372..f47e759 100644 --- a/default.nix +++ b/default.nix @@ -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 = {