{ stdenv, fetchurl, openssl, libpcap, python
, enableStatic ? false
}:

stdenv.mkDerivation rec {
  name = "vde2-2.3.2";

  src = fetchurl {
    url = "mirror://sourceforge/vde/vde2/2.3.1/${name}.tar.gz";
    sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2";
  };

  buildInputs = [ openssl libpcap python ];

  # Avoid qemu rebuild; feel free to replace with optional
  configureFlags = if enableStatic then [ "--enable-static" ] else null;

  meta = {
    homepage = http://vde.sourceforge.net/;
    description = "Virtual Distributed Ethernet, an Ethernet compliant virtual network";
  };
}

{ stdenv, fetchurl, openssl, libpcap, python }:

stdenv.mkDerivation rec {
  name = "vde2-2.3.2";

  src = fetchurl {
    url = "mirror://sourceforge/vde/vde2/2.3.1/${name}.tar.gz";
    sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2";
  };

  buildInputs = [ openssl libpcap python ];

  meta = {
    homepage = http://vde.sourceforge.net/;
    description = "Virtual Distributed Ethernet, an Ethernet compliant virtual network";
  };
}

Revert "vde2: support static build"
Revert "vde2: support static build"

This reverts commit fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.
See https://github.com/NixOS/nixpkgs/commit/ee6ca494d2427f13fc9bb09ef197f768b53b2637
for related discussion.
