1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libvmi/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2018-06-27 23:24:47 +01:00
{ stdenv,
fetchFromGitHub,
which,
autoreconfHook,
autoconf,
automake,
libtool,
yacc,
bison,
flex,
glib,
pkgconfig,
json_c,
xen,
libvirt,
xenSupport ? true }:
2017-06-11 18:49:33 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libvmi-${version}";
2018-06-27 23:24:47 +01:00
version = "0.12";
2017-06-11 18:49:33 +01:00
src = fetchFromGitHub {
owner = "libvmi";
repo = "libvmi";
2018-06-27 23:24:47 +01:00
rev = "6934e8a4758018983ec53ec791dd14a7d6ac31a9";
sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
2017-06-11 18:49:33 +01:00
};
buildInputs = [ glib which libvirt json_c ] ++ (optional xenSupport xen);
2017-06-11 18:49:33 +01:00
nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];
configureFlags = optional (!xenSupport) "--disable-xen";
2017-06-11 18:49:33 +01:00
meta = with stdenv.lib; {
homepage = "http://libvmi.com/";
description = "A C library for virtual machine introspection";
longDescription = ''
LibVMI is a C library with Python bindings that makes it easy to monitor the low-level
details of a running virtual machine by viewing its memory, trapping on hardware events,
and accessing the vCPU registers.
'';
license = with licenses; [ gpl3 lgpl3 ];
maintainers = with maintainers; [ lschuermann ];
2017-06-11 18:49:33 +01:00
};
}