more fixes

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

View file

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