37 lines
947 B
Nix
37 lines
947 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kube-router";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudnativelabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-3hfStQ87t8zKyRqUoUViAqRcI8AQXhYSwOGqwIm6Q/w=";
|
|
};
|
|
|
|
vendorHash = "sha256-kV5tUGhOm0/q5btOQu4TtDO5dVmACNNvDS7iNgm/Xio=";
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/cloudnativelabs/kube-router/pkg/version.Version=${version}"
|
|
"-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate=Nix"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = kube-router;
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|