nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, pkgconfig, gobject-introspection, intltool, vala
2, libcap_ng, libvirt, libxml2
3}:
4
5stdenv.mkDerivation rec {
6 name = "libvirt-glib-3.0.0";
7
8 outputs = [ "out" "dev" ];
9
10 src = fetchurl {
11 url = "https://libvirt.org/sources/glib/${name}.tar.gz";
12 sha256 = "1zpbv4ninc57c9rw4zmmkvvqn7154iv1qfr20kyxn8xplalqrzvz";
13 };
14
15 nativeBuildInputs = [ pkgconfig intltool vala gobject-introspection ];
16 buildInputs = [ libcap_ng libvirt libxml2 gobject-introspection ];
17
18 enableParallelBuilding = true;
19 strictDeps = true;
20
21 meta = with stdenv.lib; {
22 description = "Library for working with virtual machines";
23 longDescription = ''
24 libvirt-glib wraps libvirt to provide a high-level object-oriented API better
25 suited for glib-based applications, via three libraries:
26
27 - libvirt-glib - GLib main loop integration & misc helper APIs
28 - libvirt-gconfig - GObjects for manipulating libvirt XML documents
29 - libvirt-gobject - GObjects for managing libvirt objects
30 '';
31 homepage = https://libvirt.org/;
32 license = licenses.lgpl2Plus;
33 platforms = platforms.linux;
34 };
35}