mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 15:47:28 +00:00
32 lines
776 B
Nix
32 lines
776 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "kube-router";
|
|
version = "1.1.0";
|
|
|
|
goPackagePath = "github.com/cloudnativelabs/kube-router";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudnativelabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0nsd371w667qhgiygxcg4kmynwldb0pbip6x03rc7j854hg8l7k0";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X
|
|
${goPackagePath}/pkg/cmd.version=${version}
|
|
-X
|
|
${goPackagePath}/pkg/cmd.buildDate=Nix
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|