1 { lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools, pkg-config }:
3 stdenv.mkDerivation rec {
8 url = "https://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
9 sha256 = "sha256-8evVctclu5QOCAdxocEIZ8NQnc2DFvYRSBRQPcux6LM=";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ openssl gmp zlib ];
22 sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set dev $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
23 sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
27 description = "Protected multinode virtual network";
28 homepage = "http://software.schmorp.de/pkg/gvpe.html";
29 maintainers = [ maintainers.raskin ];
30 platforms = with platforms; linux ++ freebsd;
31 license = licenses.gpl2Plus;