diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libvirt-glib')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libvirt-glib/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libvirt-glib/default.nix b/nixpkgs/pkgs/development/libraries/libvirt-glib/default.nix new file mode 100644 index 000000000000..74c3d24560cd --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libvirt-glib/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl +, nettle, libgcrypt, pythonPackages, gobject-introspection, libcap_ng, numactl +, xen, libapparmor, vala +}: + +let + inherit (pythonPackages) python pygobject2; +in stdenv.mkDerivation rec { + name = "libvirt-glib-2.0.0"; + + outputs = [ "out" "dev" ]; + + src = fetchurl { + url = "https://libvirt.org/sources/glib/${name}.tar.gz"; + sha256 = "0six9ckmvlwwyavyjkgc262qkpvfqgi8rjij7cyk00bmqq8c9s4l"; + }; + + nativeBuildInputs = [ pkgconfig vala ]; + buildInputs = [ + libvirt glib libxml2 intltool libtool yajl nettle libgcrypt + python pygobject2 gobject-introspection libcap_ng numactl libapparmor + ] ++ stdenv.lib.optionals stdenv.isx86_64 [ + xen + ]; + + enableParallelBuilding = true; + + 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; + }; +} |