From b3f4bfaba6e6600f2bf92e9eaf286eaa076ff69d Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sat, 10 Aug 2024 11:29:43 +0200 Subject: [PATCH] kakoune: restore the ability to find ambient programs In e4da18a6923e3a332448d96fc03a78feff3b4492, logic was added to the kakoune wrapper to add a specific directory to the PATH. However, this accidentally used the build-time value, thus breaking the ability of kakoune to find programs on the system-wide PATH. Restore this ability by appending to the run-time value. --- pkgs/applications/editors/kakoune/wrapper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/kakoune/wrapper.nix b/pkgs/applications/editors/kakoune/wrapper.nix index c3507576f28d..578da52475f9 100644 --- a/pkgs/applications/editors/kakoune/wrapper.nix +++ b/pkgs/applications/editors/kakoune/wrapper.nix @@ -24,7 +24,7 @@ in rm "$out/bin/kak" makeWrapper "${kakoune}/bin/kak" "$out/bin/kak" \ --set KAKOUNE_RUNTIME "$out/share/kak" \ - --set PATH "$PATH:$out/share/kak/bin" + --suffix PATH : "$out/share/kak/bin" # currently kakoune ignores doc files if they are symlinks, so workaround by # copying doc files over, so they become regular files...