nixpkgs/pkgs/applications/networking/cluster/k9s/default.nix

32 lines
771 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-07-27 16:46:08 +00:00
buildGoModule rec {
pname = "k9s";
2021-03-30 13:38:35 +00:00
version = "0.24.6";
2019-07-27 16:46:08 +00:00
src = fetchFromGitHub {
owner = "derailed";
repo = "k9s";
2020-02-01 18:47:21 +00:00
rev = "v${version}";
2021-03-30 13:38:35 +00:00
sha256 = "sha256-uqtjAvtsF+4cz3M60Xj9sCNotaoPzaeeTKnXQUB4CIo=";
2019-07-27 16:46:08 +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}
'';
2021-03-30 13:38:35 +00:00
vendorSha256 = "sha256-/4Aof09MYHPc4VJJV2EyB7T9zNFtYY4JeDGJi67FQic=";
2019-07-27 16:46:08 +00:00
doCheck = false;
meta = with lib; {
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
}