2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-07-27 17:46:08 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2020-07-08 17:16:04 +01:00
|
|
|
version = "0.21.2";
|
2019-07-27 17:46:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-09-21 23:40:14 +01:00
|
|
|
owner = "derailed";
|
|
|
|
repo = "k9s";
|
2020-02-01 18:47:21 +00:00
|
|
|
rev = "v${version}";
|
2020-07-08 17:16:04 +01:00
|
|
|
sha256 = "06yjc4lrqr3y7428xkfcgfg3aal71r437ij2hqd2yjxsq8r7zvif";
|
2019-07-27 17:46:08 +01:00
|
|
|
};
|
|
|
|
|
2019-10-30 10:16:13 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-s -w
|
|
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
2020-04-01 14:41:04 +01:00
|
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
2019-10-30 10:16:13 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-08 17:16:04 +01:00
|
|
|
vendorSha256 = "1hmqvcvlffd8cpqcnn2f9mnyiwdhw8k46sl2p6rk16yrj06la9mr";
|
2019-07-27 17:46:08 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Kubernetes CLI To Manage Your Clusters In Style.";
|
2020-03-14 07:15:49 +00:00
|
|
|
homepage = "https://github.com/derailed/k9s";
|
2019-07-27 17:46:08 +01:00
|
|
|
license = licenses.asl20;
|
2020-07-08 17:16:04 +01:00
|
|
|
maintainers = with maintainers; [ Gonzih markus1189 ];
|
2019-07-27 17:46:08 +01:00
|
|
|
};
|
2020-07-08 17:16:04 +01:00
|
|
|
}
|