Skip to content

Commit

Permalink
papeer: install shell completion files
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmry committed Dec 31, 2024
1 parent b480172 commit 40668a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/by-name/pa/papeer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:

buildGoModule rec {
Expand All @@ -17,6 +18,14 @@ buildGoModule rec {

vendorHash = "sha256-3QRSdkx9p0H+zPB//bpWCBKKjKjrx0lHMk5lFm+U7pA=";

nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd papeer \
--bash <($out/bin/papeer completion bash) \
--fish <($out/bin/papeer completion fish) \
--zsh <($out/bin/papeer completion zsh)
'';

doCheck = false; # uses network

meta = {
Expand Down

0 comments on commit 40668a5

Please sign in to comment.