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
947 B
Nix
Raw Normal View History

2022-05-01 07:57:08 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
2018-12-03 11:31:30 +00:00
2022-05-01 07:57:08 +00:00
buildGoModule rec {
2019-07-10 15:48:31 +00:00
pname = "kube-router";
2023-08-09 02:51:38 +00:00
version = "1.6.0";
2018-12-03 11:31:30 +00:00
src = fetchFromGitHub {
owner = "cloudnativelabs";
2019-07-10 15:48:31 +00:00
repo = pname;
rev = "v${version}";
2023-08-09 02:51:38 +00:00
hash = "sha256-3hfStQ87t8zKyRqUoUViAqRcI8AQXhYSwOGqwIm6Q/w=";
2018-12-03 11:31:30 +00:00
};
2023-08-09 02:51:38 +00:00
vendorHash = "sha256-kV5tUGhOm0/q5btOQu4TtDO5dVmACNNvDS7iNgm/Xio=";
2022-05-01 07:57:08 +00:00
CGO_ENABLED = 0;
2021-08-26 03:31:57 +00:00
ldflags = [
2022-05-01 07:57:08 +00: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 03:31:57 +00:00
];
2018-12-03 11:31:30 +00:00
2022-05-01 07:57:08 +00:00
passthru.tests.version = testers.testVersion {
package = kube-router;
};
2019-07-10 15:48:31 +00: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;
};
}