inlyne: fix installing shell completions

upstream recommends using cargo xtask gen, but checks in the results
This commit is contained in:
Julius Michaelis 2024-07-11 11:07:49 +09:00
parent 33309ebfa3
commit 7454971deb

View File

@ -53,9 +53,9 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
installShellCompletion --cmd inlyne \
--bash <($out/bin/inlyne --gen-completions bash) \
--fish <($out/bin/inlyne --gen-completions fish) \
--zsh <($out/bin/inlyne --gen-completions zsh)
--bash completions/inlyne.bash \
--fish completions/inlyne.fish \
--zsh completions/_inlyne
'';
postFixup = lib.optionalString stdenv.isLinux ''