tmuxp: cleanup, remove recursion

use lib explicitly
This commit is contained in:
John Titor 2024-04-27 22:28:52 +05:30
parent 54b3a6cf30
commit ddc51f131f
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -1,13 +1,16 @@
{ lib, python3Packages, fetchPypi, installShellFiles }: { lib, python3Packages, fetchPypi, installShellFiles }:
python3Packages.buildPythonApplication rec { let
pname = "tmuxp"; pname = "tmuxp";
version = "1.46.0"; version = "1.46.0";
hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU=";
in
python3Packages.buildPythonApplication {
inherit pname version;
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version hash;
hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -31,12 +34,12 @@ python3Packages.buildPythonApplication rec {
--zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser) --zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
''; '';
meta = with lib; { meta = {
description = "tmux session manager"; description = "tmux session manager";
homepage = "https://tmuxp.git-pull.com/"; homepage = "https://tmuxp.git-pull.com/";
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES"; changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ peterhoeg otavio ]; maintainers = with lib.maintainers; [ peterhoeg otavio ];
mainProgram = "tmuxp"; mainProgram = "tmuxp";
}; };
} }