summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/k9s/default.nix
blob: 6fbad55f80704294cee4bc42ec89ea447f4676ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "k9s";
  version = "0.9.3";
  # rev is the release commit, mainly for version command output
  rev = "1a9a83b34cdd0c9b4e793ed6b4b5c16ea1a949a0";

  src = fetchFromGitHub {
    owner  = "derailed";
    repo   = "k9s";
    rev    = version;
    sha256 = "0k27mfccz563r18zlbaxll305vrmrx19ym6znsikvqxlmhy86g36";
  };

  buildFlagsArray = ''
    -ldflags=
      -s -w
      -X github.com/derailed/k9s/cmd.version=${version}
      -X github.com/derailed/k9s/cmd.commit=${rev}
  '';

  modSha256 = "09rwbl8zd06ax5hidm5l1schwqvsr5ndlqh09w1rq9fqjijy649y";

  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 ];
  };
}