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

31 lines
834 B
Nix
Raw Normal View History

2015-06-15 14:10:46 +02:00
{ stdenv, fetchurl, openssl, gmp, zlib, iproute, nettools }:
stdenv.mkDerivation rec {
name = "gvpe-${version}";
version = "2.25";
src = fetchurl {
url = "http://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
sha256 = "1gsipcysvsk80gvyn9jnk9g0xg4ng9yd5zp066jnmpgs52d2vhvk";
};
buildInputs = [ openssl gmp zlib ];
configureFlags = [
"--enable-tcp"
"--enable-http-proxy"
"--enable-dns"
];
2015-06-15 14:10:46 +02:00
preBuild = ''
sed -e 's@"/sbin/ifconfig.*"@"${iproute}/sbin/ip link set $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
'';
meta = {
2015-06-15 14:10:46 +02:00
description = "A protected multinode virtual network";
maintainers = [ stdenv.lib.maintainers.raskin ];
platforms = with stdenv.lib.platforms; linux ++ freebsd;
};
}