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; {