From 8932d2d9bff2af155a3c9ed5c91fae6013ec87be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 8 Mar 2026 19:04:01 +0100 Subject: [PATCH] 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' --- pkgs/by-name/wa/wails/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/wa/wails/package.nix b/pkgs/by-name/wa/wails/package.nix index f8bf0042f5d9..e5a5be49d192 100644 --- a/pkgs/by-name/wa/wails/package.nix +++ b/pkgs/by-name/wa/wails/package.nix @@ -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