nix-module-wrapper-manager-fds/tests/configs/lib-modules-subset/make-wraparound.nix

36 lines
673 B
Nix
Raw Normal View History

2025-01-12 09:58:39 +00:00
{
config,
lib,
pkgs,
wrapperManagerLib,
...
}:
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"
];
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
'';
};
}