2015-08-10 19:01:34 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2022-03-30 18:49:30 +00:00
|
|
|
, bridge-utils, iproute2, lxc, openvswitch, docker, busybox, dhcpcd
|
2015-08-10 19:01:34 +00:00
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pipework";
|
2018-02-26 23:12:49 +00:00
|
|
|
version = "2017-08-22";
|
2015-08-10 19:01:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpetazzo";
|
|
|
|
repo = "pipework";
|
2018-02-26 23:12:49 +00:00
|
|
|
rev = "ae42f1b5fef82b3bc23fe93c95c345e7af65fef3";
|
|
|
|
sha256 = "0c342m0bpq6ranr7dsxk9qi5mg3j5aw9wv85ql8gprdb2pz59qy8";
|
2015-08-10 19:01:34 +00:00
|
|
|
};
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-08-10 19:01:34 +00:00
|
|
|
installPhase = ''
|
2018-02-26 23:12:49 +00:00
|
|
|
install -D pipework $out/bin/pipework
|
2015-08-10 19:01:34 +00:00
|
|
|
wrapProgram $out/bin/pipework --prefix PATH : \
|
2022-03-30 18:49:30 +00:00
|
|
|
${lib.makeBinPath [ bridge-utils iproute2 lxc openvswitch docker busybox dhcpcd ]};
|
2015-08-10 19:01:34 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software-Defined Networking tools for LXC";
|
2020-04-01 01:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|