nixpkgs/pkgs/tools/misc/tmuxp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
992 B
Nix
Raw Normal View History

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";
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;
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)
'';
meta = with lib; {
2022-08-13 05:45:00 +01:00
description = "tmux session manager";
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
};
}