nixpkgs-suyu/pkgs/applications/networking/cluster/kube-router/default.nix

32 lines
776 B
Nix
Raw Normal View History

2019-07-10 17:48:31 +02:00
{ lib, buildGoPackage, fetchFromGitHub }:
2018-12-03 12:31:30 +01:00
buildGoPackage rec {
2019-07-10 17:48:31 +02:00
pname = "kube-router";
2020-10-18 18:22:32 +02:00
version = "1.1.0";
2018-12-03 12:31:30 +01:00
goPackagePath = "github.com/cloudnativelabs/kube-router";
src = fetchFromGitHub {
owner = "cloudnativelabs";
2019-07-10 17:48:31 +02:00
repo = pname;
rev = "v${version}";
2020-10-18 18:22:32 +02:00
sha256 = "0nsd371w667qhgiygxcg4kmynwldb0pbip6x03rc7j854hg8l7k0";
2018-12-03 12:31:30 +01:00
};
buildFlagsArray = ''
-ldflags=
-X
${goPackagePath}/pkg/cmd.version=${version}
-X
${goPackagePath}/pkg/cmd.buildDate=Nix
'';
2019-07-10 17:48:31 +02:00
meta = with lib; {
2018-12-03 12:31:30 +01: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;
};
}