mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 08:34:50 +00:00
32 lines
783 B
Nix
32 lines
783 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k9s";
|
|
version = "0.22.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "derailed";
|
|
repo = "k9s";
|
|
rev = "v${version}";
|
|
sha256 = "1qyibpvfbd8yahfmci431qd0zy4wwz03gwj1ak8rn3qxpv1cdbmk";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-s -w
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
|
'';
|
|
|
|
vendorSha256 = "1432ppgd3lc0h83i6vzklfhp95s2xwaf41mv4xfryzzszjfndmvl";
|
|
|
|
doCheck = false;
|
|
|
|
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 markus1189 ];
|
|
};
|
|
}
|