summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pipework
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2015-08-10 15:01:34 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2015-08-10 15:01:34 -0400
commit8b91812de6c61ab79eef8c33f2900969ccfb5a63 (patch)
tree5b7b000a31ac78645ecc5419e37c26e0b9f5afbb /pkgs/os-specific/linux/pipework
parent4af085c4d2152fb4469ffed5b12ff5f9a9aea296 (diff)
downloadnixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar.gz
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar.bz2
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar.lz
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar.xz
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.tar.zst
nixpkgs-8b91812de6c61ab79eef8c33f2900969ccfb5a63.zip
pipework: init at 2015-07-30
Pipework lets you connect together containers in arbitrarily complex
scenarios. Pipework uses cgroups and namespace and works with "plain"
LXC containers (created with lxc-start), and with the awesome Docker.
Diffstat (limited to 'pkgs/os-specific/linux/pipework')
-rw-r--r--pkgs/os-specific/linux/pipework/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/pipework/default.nix b/pkgs/os-specific/linux/pipework/default.nix
new file mode 100644
index 00000000000..225515cb70a
--- /dev/null
+++ b/pkgs/os-specific/linux/pipework/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, fetchFromGitHub, makeWrapper
+, bridge-utils, iproute, lxc, openvswitch, docker, busybox, dhcpcd, dhcp
+}:
+
+stdenv.mkDerivation rec {
+  name = "pipework-${version}";
+  version = "2015-07-30";
+  src = fetchFromGitHub {
+    owner = "jpetazzo";
+    repo = "pipework";
+    rev = "5a46ecb5f8f933fd268ef315f58a1eb1c46bd93d";
+    sha256 = "02znyg5ir37s8xqjcqqz6xnwyqxapn7c4scyqkcapxr932hf1frh";
+  };
+  buildInputs = [ makeWrapper ];
+  installPhase = ''
+    mkdir -p $out/bin
+    cp pipework $out/bin
+    wrapProgram $out/bin/pipework --prefix PATH : \
+      ${lib.makeSearchPath "bin" [ bridge-utils iproute lxc openvswitch docker busybox dhcpcd dhcp ]};
+  '';
+  meta = with lib; {
+    description = "Software-Defined Networking tools for LXC";
+    homepage = "https://github.com/jpetazzo/pipework";
+    license = licenses.asl20;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ cstrahan ];
+  };
+}