summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-12-05 02:40:42 +0300
committerNikolay Amiantov <ab@fmap.me>2016-01-12 15:06:23 +0300
commitfda6c0d3c706f07c53fb2cc01dcd651d8925bcea (patch)
treefab5f2b9dbf8303b11efaa6bd3a6e92a4efe0117 /pkgs
parentee6ca494d2427f13fc9bb09ef197f768b53b2637 (diff)
downloadnixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar.gz
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar.bz2
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar.lz
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar.xz
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.tar.zst
nixpkgs-fda6c0d3c706f07c53fb2cc01dcd651d8925bcea.zip
vde2: support static build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/vde2/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/networking/vde2/default.nix b/pkgs/tools/networking/vde2/default.nix
index 72a31262e26..e3b0bcf87c6 100644
--- a/pkgs/tools/networking/vde2/default.nix
+++ b/pkgs/tools/networking/vde2/default.nix
@@ -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";