gojq: install zsh completion

This commit is contained in:
Mitsuo HEIJO
2025-04-04 20:11:45 +09:00
parent afb05a56f1
commit ed7eae38b4
+7
View File
@@ -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;
};