libvmi: Add option to disable xen support

This commit is contained in:
Leon Schuermann 2018-06-27 23:25:44 +01:00
parent 80a2a584fe
commit f8086e3e1e

View File

@ -12,7 +12,8 @@
pkgconfig,
json_c,
xen,
libvirt }:
libvirt,
xenSupport ? true }:
with stdenv.lib;
@ -27,9 +28,11 @@ stdenv.mkDerivation rec {
sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
};
buildInputs = [ glib which libvirt json_c xen ];
buildInputs = [ glib which libvirt json_c ] ++ (optional xenSupport xen);
nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];
configureFlags = optional (!xenSupport) "--disable-xen";
meta = with stdenv.lib; {
homepage = "http://libvmi.com/";
description = "A C library for virtual machine introspection";