3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/kube-router/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
951 B
Nix
Raw Normal View History

2022-05-01 08:57:08 +01:00
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
2018-12-03 11:31:30 +00:00
2022-05-01 08:57:08 +01:00
buildGoModule rec {
2019-07-10 16:48:31 +01:00
pname = "kube-router";
2022-05-01 08:57:08 +01:00
version = "1.4.0";
2018-12-03 11:31:30 +00:00
src = fetchFromGitHub {
owner = "cloudnativelabs";
2019-07-10 16:48:31 +01:00
repo = pname;
rev = "v${version}";
2022-05-01 08:57:08 +01:00
sha256 = "sha256-WBnJPCZHtJWckoFvE8e+eAa2EC/RA7yOMlW+Cemw53Q=";
2018-12-03 11:31:30 +00:00
};
2022-05-01 08:57:08 +01:00
vendorSha256 = "sha256-5co+288KZf/dx/jZ7xIGh6kxuW3DdbpAsrZgYob3nWk=";
CGO_ENABLED = 0;
2021-08-26 04:31:57 +01:00
ldflags = [
2022-05-01 08:57:08 +01:00
"-s"
"-w"
"-X github.com/cloudnativelabs/kube-router/pkg/version.Version=${version}"
"-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate=Nix"
2021-08-26 04:31:57 +01:00
];
2018-12-03 11:31:30 +00:00
2022-05-01 08:57:08 +01:00
passthru.tests.version = testers.testVersion {
package = kube-router;
};
2019-07-10 16:48:31 +01:00
meta = with lib; {
2018-12-03 11:31:30 +00: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;
};
}