nix-config/pkgs/tmux-sessionizer/default.nix
Oliver Davies 4e96379717
All checks were successful
/ check (push) Successful in 1m35s
Re-sort directories alphabetically
PR submitted upstream: https://github.com/ThePrimeagen/tmux-sessionizer/pull/23.
2025-07-07 23:53:04 +01:00

35 lines
789 B
Nix

{ pkgs, ... }:
with pkgs;
stdenv.mkDerivation {
pname = "tmux-sessionizer";
version = "unstable-2025-06-19";
src = fetchFromGitHub {
owner = "theprimeagen";
repo = "tmux-sessionizer";
rev = "7edf8211e36368c29ffc0d2c6d5d2d350b4d729b";
sha256 = "sha256-4QGlq/cLbed7AZhQ3R1yH+44gmgp9gSzbiQft8X5NwU=";
};
buildInputs = [
bash
fzf
tmux
];
installPhase = ''
mkdir -p $out/bin
cp tmux-sessionizer $out/bin/tmux-sessionizer
chmod +x $out/bin/tmux-sessionizer
'';
patches = [
(fetchpatch {
name = "Sort directories alphabetically #23";
sha256 = "sha256-+YvXIV3VLdxzIDPYCNaJDHLxUxWuInnNNdS3VrqTpIs=";
url = "https://patch-diff.githubusercontent.com/raw/ThePrimeagen/tmux-sessionizer/pull/23.patch";
})
];
}