2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2019-07-27 18:46:08 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2020-12-05 23:11:52 +01:00
|
|
|
version = "0.24.2";
|
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}";
|
2020-12-05 23:11:52 +01:00
|
|
|
sha256 = "0cr7ap9yfd9flcph98rxap2f46fc3v689v31mc8n7vxi9jr07irh";
|
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
|
|
|
'';
|
|
|
|
|
2020-11-24 18:38:23 +01:00
|
|
|
vendorSha256 = "01g50sfk0k7v60m3anfiq2w9pzl2wpa985s22ciq911h3fscka3f";
|
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
|
|
|
}
|