mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
|
|
, nettle, libgcrypt, pythonPackages, gobjectIntrospection, libcap_ng, numactl
|
|
, xen
|
|
}:
|
|
|
|
let
|
|
inherit (pythonPackages) python pygobject2;
|
|
in stdenv.mkDerivation rec {
|
|
name = "libvirt-glib-1.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://libvirt.org/sources/glib/${name}.tar.gz";
|
|
sha256 = "0iwa5sdbii52pjpdm5j37f67sdmf0kpcky4liwhy1nf43k85i4fa";
|
|
};
|
|
|
|
buildInputs = [
|
|
pkgconfig libvirt glib libxml2 intltool libtool yajl nettle libgcrypt
|
|
python pygobject2 gobjectIntrospection libcap_ng numactl xen
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for working with virtual machines";
|
|
longDescription = ''
|
|
libvirt-glib wraps libvirt to provide a high-level object-oriented API better
|
|
suited for glib-based applications, via three libraries:
|
|
|
|
- libvirt-glib - GLib main loop integration & misc helper APIs
|
|
- libvirt-gconfig - GObjects for manipulating libvirt XML documents
|
|
- libvirt-gobject - GObjects for managing libvirt objects
|
|
'';
|
|
homepage = http://libvirt.org/;
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|