about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/kube-router
diff options
context:
space:
mode:
authorJohan Thomsen <jth@dbc.dk>2018-12-03 12:31:30 +0100
committerworldofpeace <worldofpeace@users.noreply.github.com>2018-12-06 11:20:21 -0500
commit015b2b1a3568a0d59a87d4a1a27201e57fb391cc (patch)
tree948f9e59a65292c82bba3d6872989c7bab180b63 /pkgs/applications/networking/cluster/kube-router
parent904e1852e128fcdb0e1558ea44844bffa875a1ff (diff)
kube-router: init at 0.2.3
Diffstat (limited to 'pkgs/applications/networking/cluster/kube-router')
-rw-r--r--pkgs/applications/networking/cluster/kube-router/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/kube-router/default.nix b/pkgs/applications/networking/cluster/kube-router/default.nix
new file mode 100644
index 0000000000000..8caa3cd752456
--- /dev/null
+++ b/pkgs/applications/networking/cluster/kube-router/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "kube-router-${version}";
+  version = "0.2.3";
+  rev = "v${version}";
+
+  goPackagePath = "github.com/cloudnativelabs/kube-router";
+
+  src = fetchFromGitHub {
+    inherit rev;
+    owner = "cloudnativelabs";
+    repo = "kube-router";
+    sha256 = "1dsr76dq6sycwgh75glrcb4scv52lrrd0aivskhc7mwq30plafcj";
+  };
+
+  buildFlagsArray = ''
+    -ldflags=
+    -X
+    ${goPackagePath}/pkg/cmd.version=${version}
+    -X
+    ${goPackagePath}/pkg/cmd.buildDate=Nix
+  '';
+
+  meta = with stdenv.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;
+  };
+}