diff options
| author | Georg Haas <hax404foogit@hax404.de> | 2024-01-09 22:22:08 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-01-11 21:11:26 +0000 |
| commit | ffbf6dc30d0e78d465e88dbe5ab539d9717156c0 (patch) | |
| tree | 14f409d2a0f60d6924a57d75cf6c6541b5e98d3a | |
| parent | linux/hardened/patches/6.6: 6.6.8-hardened1 -> 6.6.10-hardened1 (diff) | |
| download | nixpkgs-origin/backport-279914-to-release-23.11.tar.gz | |
ghorg: add shell completionorigin/backport-279914-to-release-23.11
(cherry picked from commit eb30af1ec3c6f68cd39bda96d223ee5bf78e74e8)
| -rw-r--r-- | pkgs/applications/version-management/ghorg/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/ghorg/default.nix b/pkgs/applications/version-management/ghorg/default.nix index f76a0f77e54f..4137b1c37484 100644 --- a/pkgs/applications/version-management/ghorg/default.nix +++ b/pkgs/applications/version-management/ghorg/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: buildGoModule rec { pname = "ghorg"; @@ -18,6 +18,14 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + nativeBuildInputs = [ installShellFiles ]; + postInstall = '' + installShellCompletion --cmd ghorg \ + --bash <($out/bin/ghorg completion bash) \ + --fish <($out/bin/ghorg completion fish) \ + --zsh <($out/bin/ghorg completion zsh) + ''; + meta = with lib; { description = "Quickly clone an entire org/users repositories into one directory"; longDescription = '' |
