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

36 lines
1.1 KiB
Nix
Raw Normal View History

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