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

32 lines
781 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2019-07-27 17:46:08 +01:00
buildGoModule rec {
pname = "k9s";
2020-12-05 22:11:52 +00:00
version = "0.24.2";
2019-07-27 17:46:08 +01:00
src = fetchFromGitHub {
owner = "derailed";
repo = "k9s";
2020-02-01 18:47:21 +00:00
rev = "v${version}";
2020-12-05 22:11:52 +00:00
sha256 = "0cr7ap9yfd9flcph98rxap2f46fc3v689v31mc8n7vxi9jr07irh";
2019-07-27 17:46:08 +01:00
};
buildFlagsArray = ''
-ldflags=
-s -w
-X github.com/derailed/k9s/cmd.version=${version}
2020-04-01 14:41:04 +01:00
-X github.com/derailed/k9s/cmd.commit=${src.rev}
'';
2020-11-24 17:38:23 +00:00
vendorSha256 = "01g50sfk0k7v60m3anfiq2w9pzl2wpa985s22ciq911h3fscka3f";
2019-07-27 17:46:08 +01: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 17:46:08 +01:00
license = licenses.asl20;
2020-07-08 17:16:04 +01:00
maintainers = with maintainers; [ Gonzih markus1189 ];
2019-07-27 17:46:08 +01:00
};
2020-07-08 17:16:04 +01:00
}