1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/k9s/default.nix

32 lines
861 B
Nix
Raw Normal View History

2019-07-27 17:46:08 +01:00
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "k9s";
2020-02-01 18:47:21 +00:00
version = "0.13.6";
# rev is the release commit, mainly for version command output
2020-02-01 18:47:21 +00:00
rev = "8fedc42304ce33df314664eb0c4ac73be59065af";
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}";
sha256 = "1gffbj6pgys6k3i8ikcy3yr2r9cwg0xki55yz5yg6z4a8h0jc8a6";
2019-07-27 17:46:08 +01:00
};
buildFlagsArray = ''
-ldflags=
-s -w
-X github.com/derailed/k9s/cmd.version=${version}
-X github.com/derailed/k9s/cmd.commit=${rev}
'';
2020-02-01 18:47:21 +00:00
modSha256 = "04k1wfhyignxy84pvq09fxvvk7pxdswbrzxvxc50dz8n8y7wcnjf";
2019-07-27 17:46:08 +01:00
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 ];
};
}