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

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

36 lines
1.0 KiB
Nix
Raw Normal View History

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