gojq: install zsh completion (#396003)

This commit is contained in:
Sandro 2025-04-04 17:41:48 +02:00 committed by GitHub
commit b14d2e153d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
fetchFromGitHub, fetchFromGitHub,
testers, testers,
gojq, gojq,
installShellFiles,
}: }:
buildGoModule rec { buildGoModule rec {
@ -24,6 +25,12 @@ buildGoModule rec {
"-w" "-w"
]; ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd gojq --zsh _gojq
'';
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = gojq; package = gojq;
}; };