3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #171103 from aaronjheng/kube-router

kube-router: 1.2.2 -> 1.4.0
This commit is contained in:
Rick van Schijndel 2022-05-16 08:13:15 +02:00 committed by GitHub
commit a24b5378d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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