forked from mirrors/nixpkgs
32 lines
773 B
Nix
32 lines
773 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k9s";
|
|
version = "0.24.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "derailed";
|
|
repo = "k9s";
|
|
rev = "v${version}";
|
|
sha256 = "0cr7ap9yfd9flcph98rxap2f46fc3v689v31mc8n7vxi9jr07irh";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-s -w
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
|
'';
|
|
|
|
vendorSha256 = "01g50sfk0k7v60m3anfiq2w9pzl2wpa985s22ciq911h3fscka3f";
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Kubernetes CLI To Manage Your Clusters In Style";
|
|
homepage = "https://github.com/derailed/k9s";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Gonzih markus1189 ];
|
|
};
|
|
}
|