Skip to content

Commit 09aa28c

Browse files
tmux-sessionizer: 0.4.3 -> 0.4.4 (#351112)
2 parents 53d911e + 2b5e094 commit 09aa28c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

pkgs/tools/misc/tmux-sessionizer/default.nix

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
, Security
88
, testers
99
, tmux-sessionizer
10+
, installShellFiles
1011
}:
1112
let
1213

1314
name = "tmux-sessionizer";
14-
version = "0.4.3";
15+
version = "0.4.4";
1516

1617
in
1718
rustPlatform.buildRustPackage {
@@ -22,10 +23,10 @@ rustPlatform.buildRustPackage {
2223
owner = "jrmoulton";
2324
repo = name;
2425
rev = "v${version}";
25-
hash = "sha256-wwu3h2eQrim/RbxTYqt+EnFmn0uD6PQzo1Xs1qCVQ3o=";
26+
hash = "sha256-4xwpenoAVGKdVO3eSS4BhaEcwpNPGA5Ozie53focDlA=";
2627
};
2728

28-
cargoHash = "sha256-5OIiDz66GD3DrNKzxH+bpyweS7Ycn2IOf4f9mdHAaCo=";
29+
cargoHash = "sha256-ajeCB1w/JHMT5e7mSwsh++lzLNfp0qfutONStpJpFDo=";
2930

3031
passthru.tests.version = testers.testVersion {
3132
package = tmux-sessionizer;
@@ -35,9 +36,16 @@ rustPlatform.buildRustPackage {
3536
# Needed to get openssl-sys to use pkg-config.
3637
OPENSSL_NO_VENDOR = 1;
3738

38-
nativeBuildInputs = [ pkg-config ];
39+
nativeBuildInputs = [ pkg-config installShellFiles ];
3940
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
4041

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)
47+
'';
48+
4149
meta = with lib; {
4250
description = "Fastest way to manage projects as tmux sessions";
4351
homepage = "https://github.com/jrmoulton/tmux-sessionizer";

0 commit comments

Comments
 (0)