vde2: support static build

This commit is contained in:
Nikolay Amiantov
2015-12-05 02:40:42 +03:00
parent ee6ca494d2
commit fda6c0d3c7

View File

@@ -1,4 +1,6 @@
{ stdenv, fetchurl, openssl, libpcap, python }:
{ stdenv, fetchurl, openssl, libpcap, python
, enableStatic ? false
}:
stdenv.mkDerivation rec {
name = "vde2-2.3.2";
@@ -10,6 +12,9 @@ stdenv.mkDerivation rec {
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";