mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
38 lines
986 B
Nix
38 lines
986 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, kube-router }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kube-router";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudnativelabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Pm/CrB/RxCvEhNdCyfI7kF62cxpx96Cj2zWmW0wl5wM=";
|
|
};
|
|
|
|
vendorHash = "sha256-sIWRODIV3iJ5FdVjVwesqfbYivOlqZAvPSYa38vhCMA=";
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/cloudnativelabs/kube-router/v2/pkg/version.Version=${version}"
|
|
"-X github.com/cloudnativelabs/kube-router/v2/pkg/version.BuildDate=Nix"
|
|
];
|
|
|
|
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";
|
|
mainProgram = "kube-router";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ colemickens johanot ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|