2015-08-10 19:01:34 +00:00
|
|
|
{ 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 : \
|
2016-04-13 12:53:51 +00:00
|
|
|
${lib.makeBinPath [ bridge-utils iproute lxc openvswitch docker busybox dhcpcd dhcp ]};
|
2015-08-10 19:01:34 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software-Defined Networking tools for LXC";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/jpetazzo/pipework;
|
2015-08-10 19:01:34 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|