Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
lib,
|
|
pkg-config,
|
|
rustPlatform,
|
|
stdenv,
|
|
versionCheckHook,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "tmux-sessionizer";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jrmoulton";
|
|
repo = "tmux-sessionizer";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-6eMKwp5639DIyhM6OD+db7jr4uF34JSt0Xg+lpyIPSI=";
|
|
};
|
|
|
|
cargoHash = "sha256-gIsqHbCmfYs1c3LPNbE4zLVjzU3GJ4MeHMt0DC5sS3c=";
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd tms \
|
|
--bash <(COMPLETE=bash $out/bin/tms) \
|
|
--fish <(COMPLETE=fish $out/bin/tms) \
|
|
--zsh <(COMPLETE=zsh $out/bin/tms)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fastest way to manage projects as tmux sessions";
|
|
homepage = "https://github.com/jrmoulton/tmux-sessionizer";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
vinnymeller
|
|
mrcjkb
|
|
];
|
|
mainProgram = "tms";
|
|
};
|
|
})
|