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

32 lines
863 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-07-27 17:46:08 +01:00
buildGoModule rec {
pname = "k9s";
2020-03-14 07:15:49 +00:00
version = "0.17.7";
# 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}";
2020-03-14 07:15:49 +00:00
sha256 = "0bqx1ckk89vzmk6fmqmv03cbdvw0agwrqzywzw35b4n0di37x0nv";
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-03-14 07:15:49 +00:00
modSha256 = "06m4xgl29zx6zpqx630m9cm52wmljms9cvly5f4pqdb4zicq7n86";
2019-07-27 17:46:08 +01:00
meta = with stdenv.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;
maintainers = with maintainers; [ Gonzih ];
};
}