more fixes

This commit is contained in:
Dennis 2026-01-22 09:36:51 +01:00
parent 00078c2aa3
commit 2dcbd88b04

View file

@ -11,13 +11,15 @@ let
}; };
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
find $target -type f -name "*.tmux" -exec chmod +x {} \; for script in $target/share/tmux-plugins/*/bin/* $target/share/tmux-plugins/*/*.tmux; do
patchShebangs $target [ -f "$script" ] && [ -x "$script" ] && wrapProgram "$script" \
find $target -type f -name "*.tmux" | while IFS= read -r script; do --prefix PATH : ${
wrapProgram "$script" --prefix PATH : ${
pkgs.lib.makeBinPath [ pkgs.lib.makeBinPath [
pkgs.bash pkgs.bash
pkgs.coreutils pkgs.coreutils
pkgs.tmux
pkgs.gnused
pkgs.gnugrep
] ]
} }
done done
@ -34,15 +36,15 @@ let
}; };
nativeBuildInputs = [ pkgs.makeWrapper ]; nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = '' postInstall = ''
find $target -type f -name "*.tmux" -exec chmod +x {} \; for script in $target/share/tmux-plugins/*/bin/* $target/share/tmux-plugins/*/*.tmux; do
patchShebangs $target [ -f "$script" ] && [ -x "$script" ] && wrapProgram "$script" \
find $target -type f -name "*.tmux" | while IFS= read -r script; do --prefix PATH : ${
wrapProgram "$script" --prefix PATH : ${
pkgs.lib.makeBinPath [ pkgs.lib.makeBinPath [
pkgs.bash pkgs.bash
pkgs.coreutils pkgs.coreutils
pkgs.gnugrep pkgs.tmux
pkgs.gnused pkgs.gnused
pkgs.gnugrep
] ]
} }
done done