forked from mirrors/nixpkgs
33 lines
819 B
Nix
33 lines
819 B
Nix
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||
|
|
||
|
buildGoPackage rec {
|
||
|
name = "kube-router-${version}";
|
||
|
version = "0.2.3";
|
||
|
rev = "v${version}";
|
||
|
|
||
|
goPackagePath = "github.com/cloudnativelabs/kube-router";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
inherit rev;
|
||
|
owner = "cloudnativelabs";
|
||
|
repo = "kube-router";
|
||
|
sha256 = "1dsr76dq6sycwgh75glrcb4scv52lrrd0aivskhc7mwq30plafcj";
|
||
|
};
|
||
|
|
||
|
buildFlagsArray = ''
|
||
|
-ldflags=
|
||
|
-X
|
||
|
${goPackagePath}/pkg/cmd.version=${version}
|
||
|
-X
|
||
|
${goPackagePath}/pkg/cmd.buildDate=Nix
|
||
|
'';
|
||
|
|
||
|
meta = with stdenv.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;
|
||
|
};
|
||
|
}
|