Commit ed7eae38 authored by Mitsuo HEIJO's avatar Mitsuo HEIJO
Browse files

gojq: install zsh completion

parent afb05a56
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
  };