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

42 lines
1.1 KiB
Nix
Raw Normal View History

2019-01-10 18:41:38 +00:00
{ stdenv, fetchFromGitHub
, libpcap
}:
stdenv.mkDerivation rec {
pname = "ubridge";
2020-03-24 15:27:20 +00:00
version = "0.9.17";
2019-01-10 18:41:38 +00:00
src = fetchFromGitHub {
owner = "GNS3";
repo = "ubridge";
rev = "v${version}";
2020-03-24 15:27:20 +00:00
sha256 = "1rwhbagac7msd116qymvlfh9qkz9jf0m8nl9xckwv68f57bhhjwl";
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;
2020-03-24 15:27:20 +00:00
changelog = "https://github.com/GNS3/ubridge/releases/tag/v${version}";
2019-01-10 18:41:38 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}