From 29c9a156e5d6564b7aaacfa2074c2c261e80bc28 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 22 Jan 2026 09:16:21 +0100 Subject: [PATCH] updates tmux plugins scripts --- modules/tmux/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix index 5b0e803..f885ad3 100644 --- a/modules/tmux/default.nix +++ b/modules/tmux/default.nix @@ -9,6 +9,17 @@ let rev = "0a8a187afcdf258e32a6b014105c12d344b670a5"; hash = "sha256-t5jRUvwiwym6f7vfKD/D0Vu1UXpxRMCLNyBbY0nZciw="; }; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + find $target -type f -name "*.tmux" -o -name "*.sh" | while read script; do + wrapProgram "$script" --prefix PATH : ${ + pkgs.lib.makeBinPath [ + pkgs.bash + pkgs.coreutils + ] + } + done + ''; }; tmux-compile = pkgs.tmuxPlugins.mkTmuxPlugin { pluginName = "tmux-compile"; @@ -19,6 +30,19 @@ let rev = "be830d944a189fc6b209490fcb815346a3c402ca"; hash = "sha256-+b3Oc4M0xhwCo7HupAJpG68ZxMC8yMNZLl6QtEQv12o="; }; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + find $target -type f -name "*.tmux" -o -name "*.sh" | while read script; do + wrapProgram "$script" --prefix PATH : ${ + pkgs.lib.makeBinPath [ + pkgs.bash + pkgs.coreutils + pkgs.gnugrep + pkgs.gnused + ] + } + done + ''; }; in