nixpkgs/pkgs/os-specific/linux/pipework/default.nix

28 lines
906 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, makeWrapper
2021-03-14 17:05:16 +01:00
, bridge-utils, iproute2, lxc, openvswitch, docker, busybox, dhcpcd, dhcp
}:
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "pipework";
2018-02-27 00:12:49 +01:00
version = "2017-08-22";
src = fetchFromGitHub {
owner = "jpetazzo";
repo = "pipework";
2018-02-27 00:12:49 +01:00
rev = "ae42f1b5fef82b3bc23fe93c95c345e7af65fef3";
sha256 = "0c342m0bpq6ranr7dsxk9qi5mg3j5aw9wv85ql8gprdb2pz59qy8";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
2018-02-27 00:12:49 +01:00
install -D pipework $out/bin/pipework
wrapProgram $out/bin/pipework --prefix PATH : \
2021-03-14 17:05:16 +01:00
${lib.makeBinPath [ bridge-utils iproute2 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 ];
};
}