Unverified Commit b14d2e15 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

gojq: install zsh completion (#396003)

parents 1e01c30c ed7eae38
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;
  };