mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
gojq: install zsh completion (#396003)
This commit is contained in:
commit
b14d2e153d
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
fetchFromGitHub,
|
||||
testers,
|
||||
gojq,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -24,6 +25,12 @@ buildGoModule rec {
|
|||
"-w"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd gojq --zsh _gojq
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = gojq;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue