8 , gobject-introspection
18 stdenv.mkDerivation rec {
19 pname = "libvirt-glib";
22 outputs = [ "out" "dev" "devdoc" ];
25 url = "https://libvirt.org/sources/glib/${pname}-${version}.tar.xz";
26 sha256 = "hCP3Bp2qR2MHMh0cEeLswoU0DNMsqfwFIHdihD7erL0=";
30 # Fix build with GLib 2.70
32 url = "https://gitlab.com/libvirt/libvirt-glib/-/commit/9a34c4ea55e0246c34896e48b8ecd637bc559ac7.patch";
33 sha256 = "UU70uTi55EzPMuLYVKRzpVcd3WogeAtWAWEC2hWlR7k=";
48 buildInputs = (lib.optionals stdenv.isLinux [
58 # https://gitlab.com/libvirt/libvirt-glib/-/issues/4
59 NIX_CFLAGS_COMPILE = [ "-Wno-error=pointer-sign" ];
62 description = "Library for working with virtual machines";
64 libvirt-glib wraps libvirt to provide a high-level object-oriented API better
65 suited for glib-based applications, via three libraries:
67 - libvirt-glib - GLib main loop integration & misc helper APIs
68 - libvirt-gconfig - GObjects for manipulating libvirt XML documents
69 - libvirt-gobject - GObjects for managing libvirt objects
71 homepage = "https://libvirt.org/";
72 license = licenses.lgpl2Plus;
73 platforms = platforms.unix;