kube-router: 1.2.2 -> 1.4.0
This commit is contained in:
parent
d595d207ba
commit
bf8d954594
1 changed files with 18 additions and 8 deletions
|
@ -1,23 +1,33 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "kube-router";
|
||||
version = "1.2.2";
|
||||
|
||||
goPackagePath = "github.com/cloudnativelabs/kube-router";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cloudnativelabs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-/VToLQexvRtcBU+k8WnGEcfLfxme/hgRnhU8723BEFU=";
|
||||
sha256 = "sha256-WBnJPCZHtJWckoFvE8e+eAa2EC/RA7yOMlW+Cemw53Q=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-5co+288KZf/dx/jZ7xIGh6kxuW3DdbpAsrZgYob3nWk=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [
|
||||
"-X ${goPackagePath}/pkg/cmd.version=${version}"
|
||||
"-X ${goPackagePath}/pkg/cmd.buildDate=Nix"
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/cloudnativelabs/kube-router/pkg/version.Version=${version}"
|
||||
"-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate=Nix"
|
||||
];
|
||||
|
||||
checkFlags = [ "-short" ];
|
||||
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue