2022-08-21 13:32:41 +00:00
|
|
|
{ lib, python3Packages, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
let
|
|
|
|
pypkgs = python3Packages;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
in
|
|
|
|
pypkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tmuxp";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "1.27.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
src = pypkgs.fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-QAk+rcNYjhAgkJX2fa0bl3dHrB4yyYQ/oNlUX3IQMR8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
propagatedBuildInputs = with pypkgs; [
|
|
|
|
click
|
|
|
|
colorama
|
|
|
|
kaptan
|
|
|
|
libtmux
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd tmuxp \
|
|
|
|
--bash <(_TMUXP_COMPLETE=bash_source $out/bin/tmuxp) \
|
|
|
|
--fish <(_TMUXP_COMPLETE=fish_source $out/bin/tmuxp) \
|
|
|
|
--zsh <(_TMUXP_COMPLETE=zsh_source $out/bin/tmuxp)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "tmux session manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tmuxp.git-pull.com/";
|
2022-08-21 13:32:41 +00:00
|
|
|
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
|
|
|
|
license = licenses.mit;
|
2021-07-03 03:11:41 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|