2025-01-12 09:58:39 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
wrapperManagerLib,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-21 11:21:37 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (wrapperManagerLib) makeWraparound;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
build.variant = "shell";
|
|
|
|
wrappers.tmux = makeWraparound {
|
|
|
|
under = lib.getExe' pkgs.boxxy "boxxy";
|
2025-01-12 09:58:39 +00:00
|
|
|
underFlags = [
|
|
|
|
"--rule"
|
|
|
|
"~/.tmux.conf:~/.config/tmux/tmux.conf"
|
|
|
|
];
|
2024-09-21 11:21:37 +00:00
|
|
|
underSeparator = "--";
|
|
|
|
|
|
|
|
arg0 = lib.getExe' pkgs.tmux "tmux";
|
|
|
|
};
|
|
|
|
|
|
|
|
build.extraPassthru.wrapperManagerTests = {
|
|
|
|
actuallyBuilt =
|
|
|
|
let
|
|
|
|
wrapper = config.build.toplevel;
|
|
|
|
tmux = lib.getExe' wrapper "tmux";
|
|
|
|
in
|
|
|
|
pkgs.runCommand "wrapper-manager-tmux-actually-built" { } ''
|
|
|
|
[ -x "${tmux}" ] && touch $out
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|