mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
libvmi: Add option to disable xen support
This commit is contained in:
parent
80a2a584fe
commit
f8086e3e1e
@ -12,7 +12,8 @@
|
|||||||
pkgconfig,
|
pkgconfig,
|
||||||
json_c,
|
json_c,
|
||||||
xen,
|
xen,
|
||||||
libvirt }:
|
libvirt,
|
||||||
|
xenSupport ? true }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -27,9 +28,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
|
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 ];
|
nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];
|
||||||
|
|
||||||
|
configureFlags = optional (!xenSupport) "--disable-xen";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://libvmi.com/";
|
homepage = "http://libvmi.com/";
|
||||||
description = "A C library for virtual machine introspection";
|
description = "A C library for virtual machine introspection";
|
||||||
|
Loading…
Reference in New Issue
Block a user