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

32 lines
784 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-07-27 18:46:08 +02:00
buildGoModule rec {
pname = "k9s";
2020-09-25 13:28:11 +02:00
version = "0.22.1";
2019-07-27 18:46:08 +02:00
src = fetchFromGitHub {
owner = "derailed";
repo = "k9s";
2020-02-01 19:47:21 +01:00
rev = "v${version}";
2020-09-25 13:28:11 +02:00
sha256 = "1qyibpvfbd8yahfmci431qd0zy4wwz03gwj1ak8rn3qxpv1cdbmk";
2019-07-27 18:46:08 +02: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}
'';
2020-09-25 13:28:11 +02:00
vendorSha256 = "1432ppgd3lc0h83i6vzklfhp95s2xwaf41mv4xfryzzszjfndmvl";
2019-07-27 18:46:08 +02:00
doCheck = false;
2019-07-27 18:46:08 +02:00
meta = with stdenv.lib; {
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
}