|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
, pkg-config, makeWrapper, libtool, autoconf, automake, fetchpatch |
|
|
|
|
, coreutils, libxml2, gnutls, perl, python2, attr |
|
|
|
|
, iproute2, iptables, readline, lvm2, util-linux, systemd, libpciaccess, gettext |
|
|
|
|
, libtasn1, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor |
|
|
|
|
, libtasn1, libgcrypt, yajl, pmutils, libcap_ng, libapparmor |
|
|
|
|
, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages |
|
|
|
|
, curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode, glib, rpcsvc-proto, libtirpc |
|
|
|
|
, enableXen ? false, xen ? null |
|
|
|
@ -54,7 +54,7 @@ in stdenv.mkDerivation rec { |
|
|
|
|
|
|
|
|
|
preConfigure = '' |
|
|
|
|
${ optionalString (!buildFromTarball) "./bootstrap --no-git --gnulib-srcdir=$(pwd)/.gnulib" } |
|
|
|
|
PATH=${lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute2 iptables ebtables lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH |
|
|
|
|
PATH=${lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute2 iptables lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH |
|
|
|
|
# the path to qemu-kvm will be stored in VM's .xml and .save files |
|
|
|
|
# do not use "''${qemu_kvm}/bin/qemu-kvm" to avoid bound VMs to particular qemu derivations |
|
|
|
|
substituteInPlace src/lxc/lxc_conf.c \ |
|
|
|
@ -75,7 +75,6 @@ in stdenv.mkDerivation rec { |
|
|
|
|
] ++ optionals stdenv.isLinux [ |
|
|
|
|
"QEMU_BRIDGE_HELPER=/run/wrappers/bin/qemu-bridge-helper" |
|
|
|
|
"QEMU_PR_HELPER=/run/libvirt/nix-helpers/qemu-pr-helper" |
|
|
|
|
"EBTABLES_PATH=${ebtables}/bin/ebtables-legacy" |
|
|
|
|
"CFLAGS=-I${libtirpc.dev}/include/tirpc" |
|
|
|
|
"--with-attr" |
|
|
|
|
"--with-apparmor" |
|
|
|
@ -101,7 +100,7 @@ in stdenv.mkDerivation rec { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postInstall = let |
|
|
|
|
binPath = [ iptables iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ebtables ] ++ optionals enableIscsi [ openiscsi ]; |
|
|
|
|
binPath = [ iptables iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ]; |
|
|
|
|
in '' |
|
|
|
|
substituteInPlace $out/libexec/libvirt-guests.sh \ |
|
|
|
|
--replace 'ON_BOOT=start' 'ON_BOOT=''${ON_BOOT:-start}' \ |
|
|
|
|