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