2025-01-18 01:56:28 +00:00
|
|
|
{ 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-07-07 12:00:00 +01:00
|
|
|
version = "unstable-2025-06-19";
|
2025-01-18 01:56:28 +00:00
|
|
|
|
2025-01-19 13:49:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2025-01-18 01:56:28 +00:00
|
|
|
owner = "theprimeagen";
|
|
|
|
repo = "tmux-sessionizer";
|
2025-07-07 12:00:00 +01:00
|
|
|
rev = "7edf8211e36368c29ffc0d2c6d5d2d350b4d729b";
|
|
|
|
sha256 = "sha256-4QGlq/cLbed7AZhQ3R1yH+44gmgp9gSzbiQft8X5NwU=";
|
2025-01-18 01:56:28 +00:00
|
|
|
};
|
|
|
|
|
2025-01-19 13:49:10 +00:00
|
|
|
buildInputs = [
|
2025-01-18 01:56:28 +00:00
|
|
|
bash
|
|
|
|
fzf
|
|
|
|
tmux
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp tmux-sessionizer $out/bin/tmux-sessionizer
|
|
|
|
chmod +x $out/bin/tmux-sessionizer
|
|
|
|
'';
|
2025-07-07 12:00:00 +01:00
|
|
|
|
2025-07-07 23:53:04 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "Sort directories alphabetically #23";
|
2025-07-15 09:34:25 +01:00
|
|
|
sha256 = "sha256-AtaOlV2JSeR0BmDsfuv8ZFbu5G0vz4RdUPY4ZF4UqQc=";
|
2025-07-07 23:53:04 +01:00
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/ThePrimeagen/tmux-sessionizer/pull/23.patch";
|
|
|
|
})
|
2025-07-15 09:49:11 +01:00
|
|
|
|
|
|
|
./shorten-paths.patch
|
2025-07-07 23:53:04 +01:00
|
|
|
];
|
2025-01-18 01:56:28 +00:00
|
|
|
}
|