aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authorLibravatar Fabian Kirchner <kirchner@posteo.de>2023-10-13 20:13:47 +0200
committerLibravatar Fabian Kirchner <kirchner@posteo.de>2023-10-13 20:13:47 +0200
commit1e8edfde87c76f1f599b3a89d4542542fd17c39c (patch)
tree07be46fd3c434529a08e4b8ef73369332fd9fff1 /default.nix
parent3e4f959560deb7618a9109314c3d41c162c33c76 (diff)
generate completion scripts for wrapped program
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix10
1 files 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)
'';
});
};