From c82f8a6ed73ec33590b8e809b4e4a799d7b71442 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 29 Dec 2023 11:26:12 -0500 Subject: [PATCH 1/2] satty: add shell completions --- pkgs/by-name/sa/satty/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/sa/satty/package.nix b/pkgs/by-name/sa/satty/package.nix index b22ea923a959..c9ec9c6b3494 100644 --- a/pkgs/by-name/sa/satty/package.nix +++ b/pkgs/by-name/sa/satty/package.nix @@ -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" ]; From ccac72b1471e56c9cfa96ba61f89ee715c87ee47 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 29 Dec 2023 11:57:45 -0500 Subject: [PATCH 2/2] satty: add myself as maintainer --- pkgs/by-name/sa/satty/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sa/satty/package.nix b/pkgs/by-name/sa/satty/package.nix index c9ec9c6b3494..3e74a7878ca1 100644 --- a/pkgs/by-name/sa/satty/package.nix +++ b/pkgs/by-name/sa/satty/package.nix @@ -58,7 +58,7 @@ rustPlatform.buildRustPackage rec { description = "A screenshot annotation tool inspired by Swappy and Flameshot"; homepage = "https://github.com/gabm/Satty"; license = licenses.mpl20; - maintainers = with maintainers; [ pinpox ]; + maintainers = with maintainers; [ pinpox donovanglover ]; mainProgram = "satty"; platforms = lib.platforms.linux; };