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

37 lines
762 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 {
url = "https://patch-diff.githubusercontent.com/raw/ThePrimeagen/tmux-sessionizer/pull/2.patch";
sha256 = "sha256-4/4rzve49T3FHnl9WWUPJVcb0NQojMQjIVnEZGwVAsY=";
})
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
'';
}