2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2022-04-15 01:41:22 +00:00
|
|
|
, bridge-utils, iproute2, lxc, openvswitch, docker, busybox, dhcpcd
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "pipework";
|
|
|
|
version = "2017-08-22";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpetazzo";
|
|
|
|
repo = "pipework";
|
|
|
|
rev = "ae42f1b5fef82b3bc23fe93c95c345e7af65fef3";
|
|
|
|
sha256 = "0c342m0bpq6ranr7dsxk9qi5mg3j5aw9wv85ql8gprdb2pz59qy8";
|
|
|
|
};
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -D pipework $out/bin/pipework
|
|
|
|
wrapProgram $out/bin/pipework --prefix PATH : \
|
2022-04-15 01:41:22 +00:00
|
|
|
${lib.makeBinPath [ bridge-utils iproute2 lxc openvswitch docker busybox dhcpcd ]};
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software-Defined Networking tools for LXC";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pipework";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jpetazzo/pipework";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|