libvirt: make xen support optional

+3 -2
+3 -2
pkgs/development/libraries/libvirt/default.nix
··· 4 , iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext 5 , libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor 6 , dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages 7 - , curl, libiconv, gmp, xen, zfs, parted, bridge-utils, dmidecode 8 }: 9 10 with stdenv.lib; ··· 39 ] ++ optionals stdenv.isLinux [ 40 libpciaccess devicemapper lvm2 utillinux systemd libnl numad zfs 41 libapparmor libcap_ng numactl attr parted 42 - ] ++ optionals (stdenv.isLinux && stdenv.isx86_64) [ 43 xen 44 ] ++ optionals stdenv.isDarwin [ 45 libiconv gmp
··· 4 , iproute, iptables, readline, lvm2, utillinux, systemd, libpciaccess, gettext 5 , libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor 6 , dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages 7 + , curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode 8 + , enableXen ? false, xen ? null 9 }: 10 11 with stdenv.lib; ··· 40 ] ++ optionals stdenv.isLinux [ 41 libpciaccess devicemapper lvm2 utillinux systemd libnl numad zfs 42 libapparmor libcap_ng numactl attr parted 43 + ] ++ optionals (enableXen && stdenv.isLinux && stdenv.isx86_64) [ 44 xen 45 ] ++ optionals stdenv.isDarwin [ 46 libiconv gmp