summary refs log tree commit diff
path: root/pkgs/tools/networking/vde2/default.nix
blob: e3b0bcf87c6a287338e0881757698ddcf33eb5de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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";
  };
}