2022-06-16 01:05:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libpcap, wolfssl }:
|
2011-01-12 13:39:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 19:11:18 +01:00
|
|
|
pname = "vde2";
|
2022-06-16 01:05:47 +01:00
|
|
|
version = "2.3.3";
|
2011-01-12 13:39:17 +00:00
|
|
|
|
2022-06-16 01:05:47 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "virtualsquare";
|
|
|
|
repo = "vde-2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Yf6QB7j5lYld2XtqhYspK4037lTtimoFc7nCavCP+mU=";
|
2011-01-12 13:39:17 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 01:05:47 +01:00
|
|
|
patches = lib.optional stdenv.hostPlatform.isMusl [
|
2020-02-24 22:06:41 +00:00
|
|
|
(fetchpatch {
|
2020-05-15 16:58:27 +01:00
|
|
|
url = "https://git.alpinelinux.org/aports/plain/main/vde2/musl-build-fix.patch?id=ddee2f86a48e087867d4a2c12849b2e3baccc238";
|
2018-03-25 03:16:02 +01:00
|
|
|
sha256 = "0b5382v541bkxhqylilcy34bh83ag96g71f39m070jzvi84kx8af";
|
2020-02-24 22:06:41 +00:00
|
|
|
})
|
|
|
|
];
|
2018-03-25 03:16:02 +01:00
|
|
|
|
2021-02-25 03:49:15 +00:00
|
|
|
preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
|
|
|
|
MACOSX_DEPLOYMENT_TARGET=10.16
|
|
|
|
'';
|
|
|
|
|
2022-06-16 01:05:47 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2022-06-16 01:05:47 +01:00
|
|
|
buildInputs = [ libpcap wolfssl ];
|
2021-10-20 17:14:51 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-24 23:36:50 +00:00
|
|
|
homepage = "https://github.com/virtualsquare/vde-2";
|
2011-01-12 13:39:17 +00:00
|
|
|
description = "Virtual Distributed Ethernet, an Ethernet compliant virtual network";
|
2018-09-10 20:49:56 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl2;
|
2011-01-12 13:39:17 +00:00
|
|
|
};
|
|
|
|
}
|