From 1e8edfde87c76f1f599b3a89d4542542fd17c39c Mon Sep 17 00:00:00 2001 From: Fabian Kirchner Date: Fri, 13 Oct 2023 20:13:47 +0200 Subject: generate completion scripts for wrapped program --- default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index e23c39e..bc7a9f4 100644 --- a/default.nix +++ b/default.nix @@ -13,16 +13,16 @@ let postInstall = '' exe=${oldAttrs.pname} - installShellCompletion --cmd $exe \ - --bash <($out/bin/$exe --bash-completion-script $exe) \ - --fish <($out/bin/$exe --fish-completion-script $exe) \ - --zsh <($out/bin/$exe --zsh-completion-script $exe) - wrapProgram $out/bin/$exe --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.git pkgs.mdcat pkgs.tree-grepper ]} + + installShellCompletion --cmd $exe \ + --bash <($out/bin/$exe --bash-completion-script $out/bin/.$exe-wrapped) \ + --fish <($out/bin/$exe --fish-completion-script $out/bin/.$exe-wrapped) \ + --zsh <($out/bin/$exe --zsh-completion-script $out/bin/.$exe-wrapped) ''; }); }; -- cgit v1.2.3