summary refs log blame commit diff
path: root/pkgs/development/libraries/libvmi/default.nix
blob: 2f1f7c314945f02e7f6f9e6e848117a4db3da3d2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                  




                             
                   

                         

                     

                                                                    

    
                                                  









                                                                                              

                                                    

    
{ stdenv,
  fetchFromGitHub,
  which,
  autoreconfHook,
  autoconf,
  automake,
  libtool,
  yacc,
  bison,
  flex,
  glib,
  pkgconfig,
  json_c,
  xen,
  libvirt }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "libvmi-${version}";
  version = "0.12";

  src = fetchFromGitHub {
    owner = "libvmi";
    repo = "libvmi";
    rev = "6934e8a4758018983ec53ec791dd14a7d6ac31a9";
    sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
  };

  buildInputs = [ glib which libvirt json_c xen ];
  nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];

  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 = [ licenses.lgpl3 ];
    maintainers = with maintainers; [ lschuermann ];
  };
}