nixpkgs-suyu/pkgs/applications/networking/cluster/hetzner-kube/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2018-07-10 18:03:58 +02:00
buildGoModule rec {
pname = "hetzner-kube";
2020-03-14 07:36:24 +01:00
version = "0.5.1";
2018-07-10 18:03:58 +02:00
src = fetchFromGitHub {
owner = "xetys";
repo = "hetzner-kube";
2019-09-09 01:38:31 +02:00
rev = version;
2020-03-14 07:36:24 +01:00
sha256 = "1iqgpmljqx6rhmvsir2675waj78amcfiw08knwvlmavjgpxx2ysw";
2018-07-10 18:03:58 +02:00
};
vendorSha256 = "1jh2f66ys6rmrrwrf5zqfprgcvziyq6l4z8bfqwxgf1ysnxx525h";
2018-07-10 18:03:58 +02:00
doCheck = false;
buildFlagsArray = ''
-ldflags=
-X github.com/xetys/hetzner-kube/cmd.version=${version}
'';
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
$out/bin/hetzner-kube completion bash > hetzner-kube
$out/bin/hetzner-kube completion zsh > _hetzner-kube
installShellCompletion --zsh _hetzner-kube
installShellCompletion --bash hetzner-kube
'';
meta = {
2018-07-10 18:03:58 +02:00
description = "A CLI tool for provisioning Kubernetes clusters on Hetzner Cloud";
2020-03-14 07:36:24 +01:00
homepage = "https://github.com/xetys/hetzner-kube";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ eliasp ];
platforms = lib.platforms.unix;
2018-07-10 18:03:58 +02:00
};
}