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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
961 B
Nix
Raw Normal View History

2021-12-15 15:20:08 +00:00
{ lib, stdenv, fetchurl, openssl, gmp, zlib, iproute2, nettools, pkg-config }:
2015-06-15 12:10:46 +00:00
stdenv.mkDerivation rec {
pname = "gvpe";
2021-12-15 15:20:08 +00:00
version = "3.1";
2015-06-15 12:10:46 +00:00
src = fetchurl {
url = "https://ftp.gnu.org/gnu/gvpe/gvpe-${version}.tar.gz";
2021-12-15 15:20:08 +00:00
sha256 = "sha256-8evVctclu5QOCAdxocEIZ8NQnc2DFvYRSBRQPcux6LM=";
2015-06-15 12:10:46 +00:00
};
2021-12-15 15:20:08 +00:00
nativeBuildInputs = [ pkg-config ];
2015-06-15 12:10:46 +00:00
buildInputs = [ openssl gmp zlib ];
configureFlags = [
"--enable-tcp"
"--enable-http-proxy"
"--enable-dns"
2021-12-15 15:20:08 +00:00
];
2021-12-15 15:20:08 +00:00
postPatch = ''
sed -e 's@"/sbin/ifconfig.*"@"${iproute2}/sbin/ip link set dev $IFNAME address $MAC mtu $MTU"@' -i src/device-linux.C
2015-06-15 12:10:46 +00:00
sed -e 's@/sbin/ifconfig@${nettools}/sbin/ifconfig@g' -i src/device-*.C
'';
meta = with lib; {
2015-06-15 12:10:46 +00:00
description = "Protected multinode virtual network";
homepage = "http://software.schmorp.de/pkg/gvpe.html";
2018-09-10 19:26:36 +00:00
maintainers = [ maintainers.raskin ];
platforms = with platforms; linux ++ freebsd;
2024-04-26 11:35:31 +00:00
license = licenses.gpl2Plus;
};
}