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

63 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2021-04-15 00:03:57 +00:00
{ lib
, stdenv
, fetchurl
, meson
, ninja
, pkg-config
, gobject-introspection
, gettext
, gtk-doc
, docbook-xsl-nons
, vala
, libcap_ng
, libvirt
, libxml2
}:
2019-08-20 17:49:10 +00:00
stdenv.mkDerivation rec {
2021-06-22 13:21:29 +00:00
pname = "libvirt-glib";
version = "4.0.0";
2021-04-15 00:03:57 +00:00
outputs = [ "out" "dev" "devdoc" ];
2018-03-15 18:09:30 +00:00
src = fetchurl {
2021-06-22 13:21:29 +00:00
url = "https://libvirt.org/sources/glib/${pname}-${version}.tar.xz";
2021-04-15 00:03:57 +00:00
sha256 = "hCP3Bp2qR2MHMh0cEeLswoU0DNMsqfwFIHdihD7erL0=";
};
2021-04-15 00:03:57 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
gtk-doc
docbook-xsl-nons
vala
gobject-introspection
];
buildInputs = [
libcap_ng
libvirt
libxml2
gobject-introspection
];
2019-08-20 17:49:10 +00:00
strictDeps = true;
2017-03-25 13:58:26 +00:00
meta = with 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;
};
}