2019-07-27 17:46:08 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2020-02-01 18:47:21 +00:00
|
|
|
version = "0.13.6";
|
2019-10-30 10:16:13 +00:00
|
|
|
# rev is the release commit, mainly for version command output
|
2020-02-01 18:47:21 +00:00
|
|
|
rev = "8fedc42304ce33df314664eb0c4ac73be59065af";
|
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}";
|
|
|
|
sha256 = "1gffbj6pgys6k3i8ikcy3yr2r9cwg0xki55yz5yg6z4a8h0jc8a6";
|
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}
|
|
|
|
-X github.com/derailed/k9s/cmd.commit=${rev}
|
|
|
|
'';
|
|
|
|
|
2020-02-01 18:47:21 +00:00
|
|
|
modSha256 = "04k1wfhyignxy84pvq09fxvvk7pxdswbrzxvxc50dz8n8y7wcnjf";
|
2019-07-27 17:46:08 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Kubernetes CLI To Manage Your Clusters In Style.";
|
|
|
|
homepage = https://github.com/derailed/k9s;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Gonzih ];
|
|
|
|
};
|
|
|
|
}
|