2018-03-25 03:16:02 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, openssl, libpcap, python2 }:
|
2011-01-12 13:39:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-12-09 11:14:02 +00:00
|
|
|
name = "vde2-2.3.2";
|
2011-01-12 13:39:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/vde/vde2/2.3.1/${name}.tar.gz";
|
2011-12-09 11:14:02 +00:00
|
|
|
sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2";
|
2011-01-12 13:39:17 +00:00
|
|
|
};
|
|
|
|
|
2018-03-25 03:16:02 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl (
|
|
|
|
fetchpatch {
|
|
|
|
url = "https://git.alpinelinux.org/cgit/aports/plain/main/vde2/musl-build-fix.patch?id=ddee2f86a48e087867d4a2c12849b2e3baccc238";
|
|
|
|
sha256 = "0b5382v541bkxhqylilcy34bh83ag96g71f39m070jzvi84kx8af";
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2016-11-09 12:11:11 +00:00
|
|
|
buildInputs = [ openssl libpcap python2 ];
|
2011-01-12 13:39:17 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2015-06-01 19:55:53 +01:00
|
|
|
meta = {
|
2011-01-12 13:39:17 +00:00
|
|
|
homepage = http://vde.sourceforge.net/;
|
|
|
|
description = "Virtual Distributed Ethernet, an Ethernet compliant virtual network";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-01-12 13:39:17 +00:00
|
|
|
};
|
|
|
|
}
|