kube-router: 1.2.2 -> 1.4.0

This commit is contained in:
Aaron Jheng 2022-05-01 07:57:08 +00:00
parent d595d207ba
commit bf8d954594
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -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";