depot/third_party/nixpkgs/pkgs/tools/misc/tmuxp/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

42 lines
992 B
Nix

{ lib, python3Packages, installShellFiles }:
let
pypkgs = python3Packages;
in
pypkgs.buildPythonApplication rec {
pname = "tmuxp";
version = "1.27.0";
src = pypkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-QAk+rcNYjhAgkJX2fa0bl3dHrB4yyYQ/oNlUX3IQMR8=";
};
# No tests in archive
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = with pypkgs; [
click
colorama
kaptan
libtmux
];
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; {
description = "tmux session manager";
homepage = "https://tmuxp.git-pull.com/";
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}