{ lib , buildGoModule , fetchFromGitHub , installShellFiles }: buildGoModule rec { pname = "kubeone"; version = "1.2.3"; src = fetchFromGitHub { owner = "kubermatic"; repo = "kubeone"; rev = "v${version}"; sha256 = "sha256-oInE8fwE+7a+F4NevKPuYQqCP9GkPhqayLu8HCmVbLs="; }; vendorSha256 = "sha256-VvO5YnDofdEku9+RC6PPHWSZY8qZt9N3JNzlm5omNAc="; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installShellCompletion --cmd kubeone \ --bash <($out/bin/kubeone completion bash) \ --zsh <($out/bin/kubeone completion zsh) ''; meta = { description = "Automate cluster operations on all your cloud, on-prem, edge, and IoT environments."; homepage = "https://kubeone.io/"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ lblasc ]; }; }