Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 makeWrapper, 6 bridge-utils, 7 iproute2, 8 lxc, 9 openvswitch, 10 docker, 11 busybox, 12 dhcpcd, 13}: 14 15stdenv.mkDerivation { 16 pname = "pipework"; 17 version = "2017-08-22"; 18 src = fetchFromGitHub { 19 owner = "jpetazzo"; 20 repo = "pipework"; 21 rev = "ae42f1b5fef82b3bc23fe93c95c345e7af65fef3"; 22 sha256 = "0c342m0bpq6ranr7dsxk9qi5mg3j5aw9wv85ql8gprdb2pz59qy8"; 23 }; 24 nativeBuildInputs = [ makeWrapper ]; 25 installPhase = '' 26 install -D pipework $out/bin/pipework 27 wrapProgram $out/bin/pipework --prefix PATH : \ 28 ${ 29 lib.makeBinPath [ 30 bridge-utils 31 iproute2 32 lxc 33 openvswitch 34 docker 35 busybox 36 dhcpcd 37 ] 38 }; 39 ''; 40 meta = with lib; { 41 description = "Software-Defined Networking tools for LXC"; 42 mainProgram = "pipework"; 43 homepage = "https://github.com/jpetazzo/pipework"; 44 license = licenses.asl20; 45 platforms = platforms.linux; 46 maintainers = [ ]; 47 }; 48}