summary refs log blame commit diff
path: root/pkgs/applications/networking/cluster/k9s/default.nix
blob: e7d50527b31e0bc0354ff814e9ad7ad47a117278 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        


                   
                     

                         

                        
                           
                                                                   

    




                                                       
 
                                                                       
 

                                        
                 
 
                    
                                                                    
                                                 
                             
                                                                        
    
 
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "k9s";
  version = "0.25.8";

  src = fetchFromGitHub {
    owner  = "derailed";
    repo   = "k9s";
    rev    = "v${version}";
    sha256 = "sha256-ZHIFMNY6eW3t604Kd6Cb9Ex9DbsG31ShD4ITKnDAUbs=";
  };

  ldflags = [
    "-s" "-w"
    "-X github.com/derailed/k9s/cmd.version=${version}"
    "-X github.com/derailed/k9s/cmd.commit=${src.rev}"
  ];

  vendorSha256 = "sha256-jWZ1N1A8VECBQvkXyuzMUkI4u2NLr5/gSvJUfK5VgzM=";

  preCheck = "export HOME=$(mktemp -d)";

  doCheck = true;

  meta = with lib; {
    description = "Kubernetes CLI To Manage Your Clusters In Style";
    homepage = "https://github.com/derailed/k9s";
    license = licenses.asl20;
    maintainers = with maintainers; [ Gonzih markus1189 bryanasdev000 ];
  };
}