satty: add shell completions

This commit is contained in:
Donovan Glover 2023-12-29 11:26:12 -05:00
parent dfdfb4dc94
commit c82f8a6ed7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -10,6 +10,7 @@
, libadwaita
, pango
, copyDesktopItems
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@ -30,6 +31,7 @@ rustPlatform.buildRustPackage rec {
copyDesktopItems
pkg-config
wrapGAppsHook4
installShellFiles
];
buildInputs = [
@ -43,6 +45,11 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
install -Dt $out/share/icons/hicolor/scalable/apps/ assets/satty.svg
installShellCompletion --cmd satty \
--bash completions/satty.bash \
--fish completions/satty.fish \
--zsh completions/_satty
'';
desktopItems = [ "satty.desktop" ];