2022-08-13 05:45:00 +01:00
|
|
|
{ lib, python3Packages, installShellFiles }:
|
2016-08-01 15:01:02 +01:00
|
|
|
|
2021-06-30 04:41:25 +01:00
|
|
|
let
|
|
|
|
pypkgs = python3Packages;
|
2016-08-01 15:01:02 +01:00
|
|
|
|
2021-06-30 04:41:25 +01:00
|
|
|
in
|
|
|
|
pypkgs.buildPythonApplication rec {
|
2018-01-20 12:14:07 +00:00
|
|
|
pname = "tmuxp";
|
2023-02-01 01:51:20 +00:00
|
|
|
version = "1.27.0";
|
2016-08-01 15:01:02 +01:00
|
|
|
|
2021-06-30 04:41:25 +01:00
|
|
|
src = pypkgs.fetchPypi {
|
2018-01-20 12:14:07 +00:00
|
|
|
inherit pname version;
|
2023-02-01 01:51:20 +00:00
|
|
|
sha256 = "sha256-QAk+rcNYjhAgkJX2fa0bl3dHrB4yyYQ/oNlUX3IQMR8=";
|
2016-08-01 15:01:02 +01:00
|
|
|
};
|
|
|
|
|
2018-01-20 12:14:07 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-13 05:45:00 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2021-06-30 04:41:25 +01:00
|
|
|
propagatedBuildInputs = with pypkgs; [
|
|
|
|
click
|
|
|
|
colorama
|
|
|
|
kaptan
|
|
|
|
libtmux
|
2016-08-01 15:01:02 +01:00
|
|
|
];
|
|
|
|
|
2022-08-13 05:45:00 +01: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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-08-13 05:45:00 +01:00
|
|
|
description = "tmux session manager";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://tmuxp.git-pull.com/";
|
2022-08-13 05:45:00 +01:00
|
|
|
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
|
|
|
|
license = licenses.mit;
|
2021-06-30 04:41:25 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2016-08-01 15:01:02 +01:00
|
|
|
};
|
|
|
|
}
|