nixpkgs/pkgs/applications/networking/cluster/kubeone/default.nix
Luka Blašković 5d3f6739e5
kubeone: init at 1.2.1 (#124238)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-05-27 05:28:31 +02:00

37 lines
841 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "kubeone";
version = "1.2.1";
src = fetchFromGitHub {
owner = "kubermatic";
repo = "kubeone";
rev = "v${version}";
sha256 = "1abm7735c4pjv31pfggkvia7br19zbhjpp2w0n5zckwrjm9hxns6";
};
vendorSha256 = "01rl4sd9prfw4ivx7dwrr9irjr0xryihp4fzpcjd2zg8f1ibkwsn";
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 ];
};
}