From 0acc32e8369f55e6a6f68c59cd5187d6cac20112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 15 Dec 2015 19:55:39 +0100 Subject: [PATCH] libvirt: add numa support --- pkgs/development/libraries/libvirt/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libvirt/default.nix b/pkgs/development/libraries/libvirt/default.nix index e946f27791b6..27e67866fe38 100644 --- a/pkgs/development/libraries/libvirt/default.nix +++ b/pkgs/development/libraries/libvirt/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, pkgconfig, libxml2, gnutls, devicemapper, perl, python , iproute, iptables, readline, lvm2, utillinux, udev, libpciaccess, gettext , libtasn1, ebtables, libgcrypt, yajl, makeWrapper, pmutils, libcap_ng -, dnsmasq, libnl, libpcap, libxslt, xhtml1 +, dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl , pythonPackages, perlPackages }: @@ -20,11 +20,12 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig libxml2 gnutls devicemapper perl python readline lvm2 utillinux udev libpciaccess gettext libtasn1 libgcrypt yajl makeWrapper - libcap_ng libnl libxslt xhtml1 perlPackages.XMLXPath + libcap_ng libnl libxslt xhtml1 perlPackages.XMLXPath numad numactl ]; preConfigure = '' PATH=${iproute}/sbin:${iptables}/sbin:${ebtables}/sbin:${lvm2}/sbin:${udev}/sbin:${dnsmasq}/bin:$PATH + substituteInPlace configure --replace 'as_dummy="/bin:/usr/bin:/usr/sbin"' 'as_dummy="${numad}/bin"' patchShebangs . # fixes /usr/bin/python references ''; @@ -35,6 +36,7 @@ stdenv.mkDerivation rec { "--with-macvtap" "--with-virtualport" "--with-libpcap" + "--with-numad" ]; installFlags = [ @@ -47,7 +49,7 @@ stdenv.mkDerivation rec { substituteInPlace $out/libexec/libvirt-guests.sh \ --replace "$out/bin" "${gettext}/bin" wrapProgram $out/sbin/libvirtd \ - --prefix PATH : ${iptables}/sbin:${iproute}/sbin:${pmutils}/bin + --prefix PATH : ${iptables}/sbin:${iproute}/sbin:${pmutils}/bin:${numad}/bin:${numactl}/bin ''; enableParallelBuilding = true;