2019-03-14 02:10:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-07-10 18:03:58 +02:00
|
|
|
|
2019-03-14 02:10:24 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
name = "hetzner-kube-${version}";
|
|
|
|
version = "0.4.1";
|
2018-07-10 18:03:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xetys";
|
|
|
|
repo = "hetzner-kube";
|
2019-03-14 02:10:24 +01:00
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "11202i3340vaz8xh59gwj5x0djcgbzq9jfy2214lcpml71qc85f0";
|
2018-07-10 18:03:58 +02:00
|
|
|
};
|
|
|
|
|
2019-03-22 04:40:07 +01:00
|
|
|
modSha256 = "1j04xyjkz7jcqrs5p5z94jqagrzcxjr9m3lyp8i91c0ymxf5m2g3";
|
2018-07-10 18:03:58 +02:00
|
|
|
|
2019-03-14 02:24:04 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/xetys/hetzner-kube/cmd.version=${version}
|
|
|
|
'';
|
|
|
|
|
2018-07-10 18:03:58 +02:00
|
|
|
meta = {
|
|
|
|
description = "A CLI tool for provisioning Kubernetes clusters on Hetzner Cloud";
|
|
|
|
homepage = https://github.com/xetys/hetzner-kube;
|
|
|
|
license = lib.licenses.asl20;
|
2018-07-11 20:42:28 +02:00
|
|
|
maintainers = with lib.maintainers; [ eliasp ];
|
2018-07-10 18:03:58 +02:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|