2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-07-27 18:46:08 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2021-03-30 15:38:35 +02:00
|
|
|
version = "0.24.6";
|
2019-07-27 18:46:08 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-09-22 00:40:14 +02:00
|
|
|
owner = "derailed";
|
|
|
|
repo = "k9s";
|
2020-02-01 19:47:21 +01:00
|
|
|
rev = "v${version}";
|
2021-03-30 15:38:35 +02:00
|
|
|
sha256 = "sha256-uqtjAvtsF+4cz3M60Xj9sCNotaoPzaeeTKnXQUB4CIo=";
|
2019-07-27 18:46:08 +02:00
|
|
|
};
|
|
|
|
|
2019-10-30 11:16:13 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-s -w
|
|
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
2020-04-01 15:41:04 +02:00
|
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
2019-10-30 11:16:13 +01:00
|
|
|
'';
|
|
|
|
|
2021-03-30 15:38:35 +02:00
|
|
|
vendorSha256 = "sha256-/4Aof09MYHPc4VJJV2EyB7T9zNFtYY4JeDGJi67FQic=";
|
2019-07-27 18:46:08 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Kubernetes CLI To Manage Your Clusters In Style";
|
2020-03-14 08:15:49 +01:00
|
|
|
homepage = "https://github.com/derailed/k9s";
|
2019-07-27 18:46:08 +02:00
|
|
|
license = licenses.asl20;
|
2020-07-08 18:16:04 +02:00
|
|
|
maintainers = with maintainers; [ Gonzih markus1189 ];
|
2019-07-27 18:46:08 +02:00
|
|
|
};
|
2020-07-08 18:16:04 +02:00
|
|
|
}
|