about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-11-15 17:18:14 +0100
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-11-21 14:34:57 +0100
commit52b848861a11bfb1f7899f4f5c3e6603b9fea210 (patch)
tree84342ddffd7be25045c0d6a840ee71dc65d53bfc /pkgs/applications/networking/cluster
parentdb25ecfcfe9ccecd01c8455e7492dc00c23a9731 (diff)
downloadnixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar.gz
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar.bz2
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar.lz
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar.xz
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.tar.zst
nixlib-52b848861a11bfb1f7899f4f5c3e6603b9fea210.zip
Add kubernetes
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r--pkgs/applications/networking/cluster/kubernetes/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/kubernetes/default.nix b/pkgs/applications/networking/cluster/kubernetes/default.nix
new file mode 100644
index 000000000000..764cf804e70f
--- /dev/null
+++ b/pkgs/applications/networking/cluster/kubernetes/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, which, go, makeWrapper, iptables,rsync }:
+
+stdenv.mkDerivation rec {
+  name = "kubernetes-${version}";
+  version = "v0.5.2";
+
+  src = fetchFromGitHub {
+    owner = "GoogleCloudPlatform";
+    repo = "kubernetes";
+    rev = version;
+    sha256 = "0nrm59v43jx0cskpd294q946053cfw3y2cgs53ji35dnhgj6fl6w";
+  };
+
+  buildInputs = [ makeWrapper which go iptables rsync ];
+
+  preBuild = "patchShebangs ./hack";
+
+  installPhase = ''
+    mkdir -p "$out/bin"
+    cp _output/local/go/bin/* "$out/bin/"
+  '';
+
+  preFixup = ''
+    wrapProgram "$out/bin/proxy" --set "PATH" "${iptables}/bin"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Open source implementation of container cluster management.";
+    license = licenses.asl20;
+    homepage = https://github.com/GoogleCloudPlatform;
+    maintainers = with maintainers; [offline];
+    platforms = with platforms; linux;
+  };
+}