2019-07-10 16:48:31 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-12-03 11:31:30 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-07-10 16:48:31 +01:00
|
|
|
pname = "kube-router";
|
2021-01-19 18:38:24 +00:00
|
|
|
version = "1.1.1";
|
2018-12-03 11:31:30 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/cloudnativelabs/kube-router";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudnativelabs";
|
2019-07-10 16:48:31 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-19 18:38:24 +00:00
|
|
|
sha256 = "sha256-U7vjWtVXmyEPYFS1fAPOgV3WILGPhWsmoawV7B0pZaE=";
|
2018-12-03 11:31:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X
|
|
|
|
${goPackagePath}/pkg/cmd.version=${version}
|
|
|
|
-X
|
|
|
|
${goPackagePath}/pkg/cmd.buildDate=Nix
|
|
|
|
'';
|
|
|
|
|
2019-07-10 16:48:31 +01:00
|
|
|
meta = with lib; {
|
2018-12-03 11:31:30 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|