libvirt: make xen support optional

This commit is contained in:
Robin Gloster 2018-06-18 09:30:25 +02:00
parent 26db7273f4
commit 8c5ccc935f
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -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