mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
libvmi: Add option to disable xen support
This commit is contained in:
parent
80a2a584fe
commit
f8086e3e1e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user