From c0bc2c11b11995f6b79bda84378e2faba650e923 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 10 Oct 2026 15:41:51 +0300 Subject: [PATCH] chatty: only wrap with PURPLE_PLUGIN_PATH if plugins are set Currently the build fails as it really doesn't like the empty string returned by (pidgin.makePluginPath): > :68:6: error: #error --prefix PURPLE_PLUGIN_PATH would introduce an empty PATH-like segment (empty, or a leading/trailing/doubled `:`). This is interpreted as "search the current directory" by shells, execvp() and the dynamic linker, see https: Check for this case, and only wrap if we actually have plugins configured (and not just pass an empty list). --- pkgs/by-name/ch/chatty/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ch/chatty/package.nix b/pkgs/by-name/ch/chatty/package.nix index ef4893c0edb42..dcc9275913ae7 100644 --- a/pkgs/by-name/ch/chatty/package.nix +++ b/pkgs/by-name/ch/chatty/package.nix @@ -69,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: { sqlite ]; - preFixup = '' + preFixup = lib.optionalString (plugins != [ ]) '' gappsWrapperArgs+=( --prefix PURPLE_PLUGIN_PATH : ${lib.escapeShellArg (pidgin.makePluginPath plugins)} ${lib.concatMapStringsSep " " (p: p.wrapArgs or "") plugins}