wails: do not overwrite user provided tools

For example when building a project with golang 1.26 we want to use the
user provoided compiler and not have to run wailts like:
  GOTOOLCHAIN=go1.26.0 wails build -compiler '${go_1_26}/bin/go'
This commit is contained in:
Sandro Jäckel
2026-03-08 19:04:01 +01:00
parent 7a5d8e9551
commit 8932d2d9bf
+2 -2
View File
@@ -64,7 +64,7 @@ buildGoModule (finalAttrs: {
# As Wails calls a compiler, certain apps and libraries need to be made available.
postFixup = ''
wrapProgram $out/bin/wails \
--prefix PATH : ${
--suffix PATH : ${
lib.makeBinPath [
pkg-config
go
@@ -72,7 +72,7 @@ buildGoModule (finalAttrs: {
nodejs
]
} \
--prefix LD_LIBRARY_PATH : "${
--suffix LD_LIBRARY_PATH : "${
lib.makeLibraryPath (
lib.optionals stdenv.hostPlatform.isLinux [
gtk3