nixpkgs/pkgs/tools/networking/ubridge/default.nix

41 lines
1014 B
Nix
Raw Normal View History

2019-01-10 18:41:38 +00:00
{ stdenv, fetchFromGitHub
, libpcap
}:
stdenv.mkDerivation rec {
pname = "ubridge";
2019-05-20 18:48:45 +00:00
version = "0.9.16";
2019-01-10 18:41:38 +00:00
src = fetchFromGitHub {
owner = "GNS3";
repo = "ubridge";
rev = "v${version}";
2019-05-20 18:48:45 +00:00
sha256 = "1bind7ylgxs743vfdmpdrpp4iamy461bc3i7nxza91kj7hyyjz6h";
2019-01-10 18:41:38 +00:00
};
postPatch = ''
substituteInPlace Makefile \
--replace "/usr/local/bin" "$out/bin" \
--replace "setcap" "#setcap"
'';
buildInputs = [ libpcap ];
preInstall = ''
mkdir -p $out/bin
'';
meta = with stdenv.lib; {
description = "Bridge for UDP tunnels, Ethernet, TAP, and VMnet interfaces";
longDescription = ''
uBridge is a simple application to create user-land bridges between
various technologies. Currently bridging between UDP tunnels, Ethernet
and TAP interfaces is supported. Packet capture is also supported.
'';
inherit (src.meta) homepage;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}