mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
1012 B
Nix
49 lines
1012 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
bridge-utils,
|
|
iproute2,
|
|
lxc,
|
|
openvswitch,
|
|
docker,
|
|
busybox,
|
|
dhcpcd,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "pipework";
|
|
version = "2017-08-22";
|
|
src = fetchFromGitHub {
|
|
owner = "jpetazzo";
|
|
repo = "pipework";
|
|
rev = "ae42f1b5fef82b3bc23fe93c95c345e7af65fef3";
|
|
sha256 = "0c342m0bpq6ranr7dsxk9qi5mg3j5aw9wv85ql8gprdb2pz59qy8";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installPhase = ''
|
|
install -D pipework $out/bin/pipework
|
|
wrapProgram $out/bin/pipework --prefix PATH : \
|
|
${
|
|
lib.makeBinPath [
|
|
bridge-utils
|
|
iproute2
|
|
lxc
|
|
openvswitch
|
|
docker
|
|
busybox
|
|
dhcpcd
|
|
]
|
|
};
|
|
'';
|
|
meta = {
|
|
description = "Software-Defined Networking tools for LXC";
|
|
mainProgram = "pipework";
|
|
homepage = "https://github.com/jpetazzo/pipework";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|