14 name = "tmux-sessionizer";
18 rustPlatform.buildRustPackage {
22 src = fetchFromGitHub {
26 hash = "sha256-4xwpenoAVGKdVO3eSS4BhaEcwpNPGA5Ozie53focDlA=";
29 cargoHash = "sha256-ajeCB1w/JHMT5e7mSwsh++lzLNfp0qfutONStpJpFDo=";
31 passthru.tests.version = testers.testVersion {
32 package = tmux-sessionizer;
36 # Needed to get openssl-sys to use pkg-config.
37 OPENSSL_NO_VENDOR = 1;
39 nativeBuildInputs = [ pkg-config installShellFiles ];
40 buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
42 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
43 installShellCompletion --cmd tms \
44 --bash <($out/bin/tms --generate bash) \
45 --fish <($out/bin/tms --generate fish) \
46 --zsh <($out/bin/tms --generate zsh)
50 description = "Fastest way to manage projects as tmux sessions";
51 homepage = "https://github.com/jrmoulton/tmux-sessionizer";
52 license = licenses.mit;
53 maintainers = with maintainers; [ vinnymeller mrcjkb ];