2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-07-27 16:46:08 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2020-11-11 11:02:38 +00:00
|
|
|
version = "0.23.10";
|
2019-07-27 16:46:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-09-21 22:40:14 +00:00
|
|
|
owner = "derailed";
|
|
|
|
repo = "k9s";
|
2020-02-01 18:47:21 +00:00
|
|
|
rev = "v${version}";
|
2020-11-11 11:02:38 +00:00
|
|
|
sha256 = "0nfgi67ja36mymhcyh4902680pkfnk4g8j8nbajksx9nfp53n91v";
|
2019-07-27 16:46:08 +00:00
|
|
|
};
|
|
|
|
|
2019-10-30 10:16:13 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-s -w
|
|
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
2020-04-01 13:41:04 +00:00
|
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
2019-10-30 10:16:13 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-11 11:02:38 +00:00
|
|
|
vendorSha256 = "116aidry55917ays7rn5r5kj17nbgb9qi16bplml9kxfkjv072kz";
|
2019-07-27 16:46:08 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-27 16:46:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
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 16:46:08 +00:00
|
|
|
license = licenses.asl20;
|
2020-07-08 16:16:04 +00:00
|
|
|
maintainers = with maintainers; [ Gonzih markus1189 ];
|
2019-07-27 16:46:08 +00:00
|
|
|
};
|
2020-07-08 16:16:04 +00:00
|
|
|
}
|