31 lines
783 B
Nix
31 lines
783 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k9s";
|
|
version = "0.23.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "derailed";
|
|
repo = "k9s";
|
|
rev = "v${version}";
|
|
sha256 = "0jdrjsv6miprw0bj964rgkbci4xdwfi536z3px93i2n9zrhhawpn";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-s -w
|
|
-X github.com/derailed/k9s/cmd.version=${version}
|
|
-X github.com/derailed/k9s/cmd.commit=${src.rev}
|
|
'';
|
|
|
|
vendorSha256 = "105vmy8agl3ppgi28wg7djx0jrfam7nxfvvlps9ycgyrv2qpjh2n";
|
|
|
|
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 ];
|
|
};
|
|
}
|