{ lib , buildGoModule , fetchFromGitHub , installShellFiles }: buildGoModule rec { pname = "kubecfg"; version = "0.29.2"; src = fetchFromGitHub { owner = "kubecfg"; repo = "kubecfg"; rev = "v${version}"; hash = "sha256-toB0rRkqRTjf51g+BcMZiHjlG/slMyzA5OfO4DbTCH8="; }; vendorHash = "sha256-sntlF8VCOtIB6kFJZaDs2Uu8zWZwMLcnHWuZy2D30Zg="; ldflags = [ "-s" "-w" "-X main.version=v${version}" ]; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installShellCompletion --cmd kubecfg \ --bash <($out/bin/kubecfg completion --shell=bash) \ --zsh <($out/bin/kubecfg completion --shell=zsh) ''; meta = with lib; { description = "A tool for managing Kubernetes resources as code"; homepage = "https://github.com/kubecfg/kubecfg"; changelog = "https://github.com/kubecfg/kubecfg/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ benley ]; platforms = platforms.unix; }; }