From 7db2d0f85e38e9700ccc845e5f5076ddf73dfd01 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 30 May 2024 18:27:15 -0400 Subject: [PATCH] python311Packages.pipx: fix cross compilation --- pkgs/development/python-modules/pipx/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pipx/default.nix b/pkgs/development/python-modules/pipx/default.nix index 916ac250e86f..fa8c4f6f28bc 100644 --- a/pkgs/development/python-modules/pipx/default.nix +++ b/pkgs/development/python-modules/pipx/default.nix @@ -41,7 +41,10 @@ buildPythonPackage rec { userpath ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + argcomplete + ]; nativeCheckInputs = [ pytestCheckHook @@ -83,9 +86,9 @@ buildPythonPackage rec { postInstall = '' installShellCompletion --cmd pipx \ - --bash <(${argcomplete}/bin/register-python-argcomplete pipx --shell bash) \ - --zsh <(${argcomplete}/bin/register-python-argcomplete pipx --shell zsh) \ - --fish <(${argcomplete}/bin/register-python-argcomplete pipx --shell fish) + --bash <(register-python-argcomplete pipx --shell bash) \ + --zsh <(register-python-argcomplete pipx --shell zsh) \ + --fish <(register-python-argcomplete pipx --shell fish) ''; meta = with lib; {