kubecm: installShellCompletion (#398508)

authored by Peder Bergebakken Sundt and committed by GitHub ec9ef366 db22a690

+15 -1
+15 -1
pkgs/by-name/ku/kubecm/package.nix
··· 2 2 lib, 3 3 buildGoModule, 4 4 fetchFromGitHub, 5 + installShellFiles, 6 + stdenv, 5 7 }: 6 8 7 9 buildGoModule rec { ··· 22 24 "-X github.com/sunny0826/kubecm/version.Version=${version}" 23 25 ]; 24 26 27 + nativeBuildInputs = [ installShellFiles ]; 28 + 29 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 30 + installShellCompletion --cmd kubecm \ 31 + --bash <($out/bin/kubecm completion bash) \ 32 + --fish <($out/bin/kubecm completion fish) \ 33 + --zsh <($out/bin/kubecm completion zsh) 34 + ''; 35 + 25 36 doCheck = false; 26 37 27 38 meta = with lib; { 28 39 description = "Manage your kubeconfig more easily"; 29 40 homepage = "https://github.com/sunny0826/kubecm/"; 30 41 license = licenses.asl20; 31 - maintainers = with maintainers; [ qjoly ]; 42 + maintainers = with maintainers; [ 43 + qjoly 44 + sailord 45 + ]; 32 46 mainProgram = "kubecm"; 33 47 }; 34 48 }