tmux-sessionizer: 0.4.3 -> 0.4.4

This commit is contained in:
Tobias Langendorf 2024-10-25 10:04:46 +02:00
parent c161987baf
commit 2b5e0949de

View File

@ -7,11 +7,12 @@
, Security
, testers
, tmux-sessionizer
, installShellFiles
}:
let
name = "tmux-sessionizer";
version = "0.4.3";
version = "0.4.4";
in
rustPlatform.buildRustPackage {
@ -22,10 +23,10 @@ rustPlatform.buildRustPackage {
owner = "jrmoulton";
repo = name;
rev = "v${version}";
hash = "sha256-wwu3h2eQrim/RbxTYqt+EnFmn0uD6PQzo1Xs1qCVQ3o=";
hash = "sha256-4xwpenoAVGKdVO3eSS4BhaEcwpNPGA5Ozie53focDlA=";
};
cargoHash = "sha256-5OIiDz66GD3DrNKzxH+bpyweS7Ycn2IOf4f9mdHAaCo=";
cargoHash = "sha256-ajeCB1w/JHMT5e7mSwsh++lzLNfp0qfutONStpJpFDo=";
passthru.tests.version = testers.testVersion {
package = tmux-sessionizer;
@ -35,9 +36,16 @@ rustPlatform.buildRustPackage {
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd tms \
--bash <($out/bin/tms --generate bash) \
--fish <($out/bin/tms --generate fish) \
--zsh <($out/bin/tms --generate zsh)
'';
meta = with lib; {
description = "Fastest way to manage projects as tmux sessions";
homepage = "https://github.com/jrmoulton/tmux-sessionizer";