libvirt: make xen support optional
This commit is contained in:
parent
26db7273f4
commit
8c5ccc935f
@ -4,7 +4,8 @@
|
||||
, iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext
|
||||
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
|
||||
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
|
||||
, curl, libiconv, gmp, xen, zfs, parted, bridge-utils, dmidecode
|
||||
, curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode
|
||||
, enableXen ? false, xen ? null
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -39,7 +40,7 @@ in stdenv.mkDerivation rec {
|
||||
] ++ optionals stdenv.isLinux [
|
||||
libpciaccess devicemapper lvm2 utillinux systemd libnl numad zfs
|
||||
libapparmor libcap_ng numactl attr parted
|
||||
] ++ optionals (stdenv.isLinux && stdenv.isx86_64) [
|
||||
] ++ optionals (enableXen && stdenv.isLinux && stdenv.isx86_64) [
|
||||
xen
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
libiconv gmp
|
||||
|
Loading…
Reference in New Issue
Block a user