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

                    
                        
                    



                                                           
                              

                        
                                                                   

    



                                                    
 
                    






                                                                                 
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "kube-router";
  version = "1.2.2";

  goPackagePath = "github.com/cloudnativelabs/kube-router";

  src = fetchFromGitHub {
    owner = "cloudnativelabs";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-/VToLQexvRtcBU+k8WnGEcfLfxme/hgRnhU8723BEFU=";
  };

  ldflags = [
    "-X ${goPackagePath}/pkg/cmd.version=${version}"
    "-X ${goPackagePath}/pkg/cmd.buildDate=Nix"
  ];

  meta = with lib; {
    homepage = "https://www.kube-router.io/";
    description = "All-in-one router, firewall and service proxy for Kubernetes";
    license = licenses.asl20;
    maintainers = with maintainers; [ colemickens johanot ];
    platforms = platforms.linux;
  };
}