2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-07-27 17:46:08 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "k9s";
|
2021-12-28 17:18:52 +00:00
|
|
|
version = "0.25.18";
|
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}";
|
2021-12-28 17:18:52 +00:00
|
|
|
sha256 = "sha256-iUhMPtFX7qFULegiyhlT4aG9q3deZ8aRqyEcbZ9jY/s=";
|
2019-07-27 17:46:08 +01:00
|
|
|
};
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X github.com/derailed/k9s/cmd.version=${version}"
|
|
|
|
"-X github.com/derailed/k9s/cmd.commit=${src.rev}"
|
|
|
|
];
|
2019-10-30 10:16:13 +00:00
|
|
|
|
2021-12-07 07:34:07 +00:00
|
|
|
vendorSha256 = "sha256-jWZ1N1A8VECBQvkXyuzMUkI4u2NLr5/gSvJUfK5VgzM=";
|
2019-07-27 17:46:08 +01:00
|
|
|
|
2021-12-03 13:56:38 +00:00
|
|
|
preCheck = "export HOME=$(mktemp -d)";
|
|
|
|
|
2021-12-03 13:02:50 +00:00
|
|
|
doCheck = true;
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01: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 17:46:08 +01:00
|
|
|
license = licenses.asl20;
|
2021-12-03 13:02:50 +00:00
|
|
|
maintainers = with maintainers; [ Gonzih markus1189 bryanasdev000 ];
|
2019-07-27 17:46:08 +01:00
|
|
|
};
|
2020-07-08 17:16:04 +01:00
|
|
|
}
|