From 56b840f07baedef3f63cbb7632de8067aac8aa2d Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 16 Jun 2022 10:05:47 +1000 Subject: [PATCH] vde2: 2.3.2 -> 2.3.3 https://github.com/virtualsquare/vde-2/releases/tag/v2.3.3 --- pkgs/tools/networking/vde2/default.nix | 35 ++++++++------------------ 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/pkgs/tools/networking/vde2/default.nix b/pkgs/tools/networking/vde2/default.nix index 31d4f9e3ff57..c14aa8bb3c13 100644 --- a/pkgs/tools/networking/vde2/default.nix +++ b/pkgs/tools/networking/vde2/default.nix @@ -1,22 +1,17 @@ -{ lib, stdenv, fetchurl, fetchpatch, openssl, libpcap, python2, withPython ? false }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libpcap, wolfssl }: stdenv.mkDerivation rec { pname = "vde2"; - version = "2.3.2"; + version = "2.3.3"; - src = fetchurl { - url = "mirror://sourceforge/vde/vde2/${version}/vde2-${version}.tar.gz"; - sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"; + src = fetchFromGitHub { + owner = "virtualsquare"; + repo = "vde-2"; + rev = "v${version}"; + sha256 = "sha256-Yf6QB7j5lYld2XtqhYspK4037lTtimoFc7nCavCP+mU="; }; - patches = [ - # Fix build with openssl 1.1.0 - (fetchpatch { - name = "vde_cryptcab-compile-against-openssl-1.1.0.patch"; - url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/15b11be49997fa94b603e366064690b7cc6bce61/trunk/vde_cryptcab-compile-against-openssl-1.1.0.patch"; - sha256 = "07z1yabwigq35mkwzqa934n7vjnjlqz5xfzq8cfj87lgyjjp00qi"; - }) - ] ++ lib.optional stdenv.hostPlatform.isMusl [ + patches = lib.optional stdenv.hostPlatform.isMusl [ (fetchpatch { url = "https://git.alpinelinux.org/aports/plain/main/vde2/musl-build-fix.patch?id=ddee2f86a48e087867d4a2c12849b2e3baccc238"; sha256 = "0b5382v541bkxhqylilcy34bh83ag96g71f39m070jzvi84kx8af"; @@ -27,19 +22,9 @@ stdenv.mkDerivation rec { MACOSX_DEPLOYMENT_TARGET=10.16 ''; - configureFlags = lib.optional (!withPython) "--disable-python"; + nativeBuildInputs = [ autoreconfHook ]; - buildInputs = [ openssl libpcap ] - ++ lib.optional withPython python2; - - hardeningDisable = [ "format" ]; - - # Disable parallel build as it fails as: - # make: *** No rule to make target '../../src/lib/libvdemgmt.la', - # needed by 'libvdesnmp.la'. Stop. - # Next release should address it with - # https://github.com/virtualsquare/vde-2/commit/7dd9ed46d5dca125ca45d679ac9f3acbfb0f9300.patch - enableParallelBuilding = false; + buildInputs = [ libpcap wolfssl ]; meta = with lib; { homepage = "https://github.com/virtualsquare/vde-2";