lol
1{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
2, nettle, libgcrypt, pythonPackages, gobjectIntrospection, libcap_ng, numactl
3, xen, libapparmor
4}:
5
6let
7 inherit (pythonPackages) python pygobject2;
8in stdenv.mkDerivation rec {
9 name = "libvirt-glib-1.0.0";
10
11 src = fetchurl {
12 url = "http://libvirt.org/sources/glib/${name}.tar.gz";
13 sha256 = "0iwa5sdbii52pjpdm5j37f67sdmf0kpcky4liwhy1nf43k85i4fa";
14 };
15
16 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [
18 libvirt glib libxml2 intltool libtool yajl nettle libgcrypt
19 python pygobject2 gobjectIntrospection libcap_ng numactl libapparmor
20 ] ++ stdenv.lib.optionals stdenv.isx86_64 [
21 xen
22 ];
23
24 enableParallelBuilding = true;
25
26 meta = with stdenv.lib; {
27 description = "Library for working with virtual machines";
28 longDescription = ''
29 libvirt-glib wraps libvirt to provide a high-level object-oriented API better
30 suited for glib-based applications, via three libraries:
31
32 - libvirt-glib - GLib main loop integration & misc helper APIs
33 - libvirt-gconfig - GObjects for manipulating libvirt XML documents
34 - libvirt-gobject - GObjects for managing libvirt objects
35 '';
36 homepage = http://libvirt.org/;
37 license = licenses.lgpl2Plus;
38 platforms = platforms.linux;
39 };
40}