tmux-sessionizer: use getExe

This commit is contained in:
Zynh Ludwig 2024-08-08 21:34:33 -07:00
parent da24f19a47
commit 858905ac30

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) getExe getExe';
cfg = config.snowhawk.tmux.sessionizer;
tmuxCfg = config.snowhawk.tmux;
@ -37,12 +39,12 @@ in
snowhawk.tmux.sessionizer.pkg =
let
tmux = "${pkgs.tmux}/bin/tmux";
pgrep = "${pkgs.procps}/bin/pgrep";
basename = "${pkgs.coreutils}/bin/basename";
tr = "${pkgs.coreutils}/bin/tr";
fzf = "${pkgs.fzf}/bin/fzf";
find = "${pkgs.findutils}/bin/find";
tmux = getExe pkgs.tmux;
pgrep = getExe' pkgs.procps "pgrep";
basename = getExe' pkgs.coreutils "basename";
tr = getExe' pkgs.coreutils "tr";
fzf = getExe pkgs.fzf;
find = getExe pkgs.findutils;
in
lib.mkDefault (pkgs.writeShellScriptBin "tmux-sessionizer" ''
if [[ $# -eq 1 ]]; then