nixpkgs/pkgs/development/libraries/libvirt-glib/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2019-08-20 18:49:10 +01:00
{ stdenv, fetchurl, pkgconfig, gobject-introspection, intltool, vala
, libcap_ng, libvirt, libxml2
}:
2019-08-20 18:49:10 +01:00
stdenv.mkDerivation rec {
2019-12-08 16:33:46 +00:00
name = "libvirt-glib-3.0.0";
2018-03-15 18:09:30 +00:00
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://libvirt.org/sources/glib/${name}.tar.gz";
2019-12-08 16:33:46 +00:00
sha256 = "1zpbv4ninc57c9rw4zmmkvvqn7154iv1qfr20kyxn8xplalqrzvz";
};
2019-08-20 18:49:10 +01:00
nativeBuildInputs = [ pkgconfig intltool vala gobject-introspection ];
buildInputs = [ libcap_ng libvirt libxml2 gobject-introspection ];
2017-03-25 13:58:26 +00:00
enableParallelBuilding = true;
2019-08-20 18:49:10 +01:00
strictDeps = true;
2017-03-25 13:58:26 +00:00
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 = "https://libvirt.org/";
license = licenses.lgpl2Plus;
platforms = platforms.linux;
};
}