more fixes
This commit is contained in:
parent
00078c2aa3
commit
2dcbd88b04
1 changed files with 22 additions and 20 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue