From ddc51f131f479348fbf92fea0af7e66cfc65451b Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:28:52 +0530 Subject: [PATCH] tmuxp: cleanup, remove recursion use lib explicitly --- pkgs/tools/misc/tmuxp/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/tmuxp/default.nix b/pkgs/tools/misc/tmuxp/default.nix index e6dbc49ada49..0d92123c2725 100644 --- a/pkgs/tools/misc/tmuxp/default.nix +++ b/pkgs/tools/misc/tmuxp/default.nix @@ -1,13 +1,16 @@ { lib, python3Packages, fetchPypi, installShellFiles }: -python3Packages.buildPythonApplication rec { +let pname = "tmuxp"; version = "1.46.0"; + hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU="; +in +python3Packages.buildPythonApplication { + inherit pname version; pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU="; + inherit pname version hash; }; nativeBuildInputs = [ @@ -31,12 +34,12 @@ python3Packages.buildPythonApplication rec { --zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser) ''; - meta = with lib; { + meta = { 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 otavio ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ peterhoeg otavio ]; mainProgram = "tmuxp"; }; }