From 3f65040107745570d1f20c9bc1745fac7b1abd22 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Sat, 13 Apr 2024 10:26:32 -0700 Subject: [PATCH] pdm: fix shell completions --- pkgs/tools/package-management/pdm/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/package-management/pdm/default.nix b/pkgs/tools/package-management/pdm/default.nix index fd8539da9654..2d252819dc02 100644 --- a/pkgs/tools/package-management/pdm/default.nix +++ b/pkgs/tools/package-management/pdm/default.nix @@ -94,10 +94,12 @@ buildPythonApplication rec { ''; postInstall = '' - installShellCompletion --cmd pdm \ - --bash <($out/bin/pdm completion bash) \ - --fish <($out/bin/pdm completion fish) \ - --zsh <($out/bin/pdm completion zsh) + export PDM_LOG_DIR=/tmp/pdm/log + $out/bin/pdm completion bash >pdm.bash + $out/bin/pdm completion fish >pdm.fish + $out/bin/pdm completion zsh >pdm.zsh + installShellCompletion pdm.{bash,fish,zsh} + unset PDM_LOG_DIR ''; nativeCheckInputs = [