File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
pkgs/tools/misc/tmux-sessionizer Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 77, Security
88, testers
99, tmux-sessionizer
10+ , installShellFiles
1011} :
1112let
1213
1314 name = "tmux-sessionizer" ;
14- version = "0.4.3 " ;
15+ version = "0.4.4 " ;
1516
1617in
1718rustPlatform . 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" ;
You can’t perform that action at this time.
0 commit comments