nix-config/pkgs/tmux-sessionizer/default.nix

41 lines
876 B
Nix
Raw Normal View History

{ pkgs, ... }:
2025-01-19 13:49:10 +00:00
with pkgs;
stdenv.mkDerivation {
2025-03-17 20:05:16 +00:00
pname = "tmux-sessionizer";
2025-04-23 16:12:10 +01:00
version = "unstable-2024-10-30";
2025-01-19 13:49:10 +00:00
src = fetchFromGitHub {
owner = "theprimeagen";
repo = "tmux-sessionizer";
2025-04-23 16:12:10 +01:00
rev = "6ebd16e2e30a8c0ebd77f0c2ce18cb46db8397fa";
sha256 = "bZXt9TyMU1Ed/WR0/ahMQ4oyIi6yXLKnXKYPPNBt/s4=";
};
2025-01-19 13:49:10 +00:00
buildInputs = [
bash
fzf
tmux
];
2025-03-17 20:05:16 +00:00
patches = [
./move-default-script.patch
(fetchpatch {
2025-06-02 00:25:50 +01:00
name = "feat: Made folders more dynamic";
url = "https://patch-diff.githubusercontent.com/raw/ThePrimeagen/tmux-sessionizer/pull/2.patch";
sha256 = "sha256-4/4rzve49T3FHnl9WWUPJVcb0NQojMQjIVnEZGwVAsY=";
})
2025-05-28 20:18:01 +01:00
./shorten-suggested-paths.patch
./sort-suggestions.patch
2025-03-17 20:05:16 +00:00
];
installPhase = ''
mkdir -p $out/bin
cp tmux-sessionizer $out/bin/tmux-sessionizer
chmod +x $out/bin/tmux-sessionizer
'';
}