mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
libvirt-glib: 0.2.0 -> 0.2.3
This also fixes the build with the xen-supporting libvirt and removes obsolete workarounds.
This commit is contained in:
parent
4e225b61d2
commit
8260022a1b
@ -1,36 +1,21 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
|
||||
, nettle, libgcrypt, python, pygobject, gobjectIntrospection, libcap_ng, numactl
|
||||
, xen
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libvirt-glib-0.2.0";
|
||||
name = "libvirt-glib-0.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://libvirt.org/sources/glib/${name}.tar.gz";
|
||||
sha256 = "02saqkk4wzsimsan7s9yc5bx05xn7j00hnxhq4sczkgr4krf1drh";
|
||||
sha256 = "1pahj8qa7k2307sd57rwqwq1hijya02v0sxk91hl3cw48niimcf3";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig libvirt glib libxml2 intltool libtool yajl nettle libgcrypt
|
||||
python pygobject gobjectIntrospection libcap_ng numactl
|
||||
python pygobject gobjectIntrospection libcap_ng numactl xen
|
||||
];
|
||||
|
||||
# Compiler flag -fstack-protector-all fixes this build error:
|
||||
#
|
||||
# ./.libs/libvirt-glib-1.0.so: undefined reference to `__stack_chk_guard'
|
||||
#
|
||||
# And the extra include path fixes this build error:
|
||||
#
|
||||
# In file included from ../libvirt-gobject/libvirt-gobject-domain-device.h:30:0,
|
||||
# from /tmp/nix-build-libvirt-glib-0.1.7.drv-2/libvirt-glib-0.1.7/libvirt-gobject/libvirt-gobject.h:33,
|
||||
# from <stdin>:4:
|
||||
# ../libvirt-gobject/libvirt-gobject-domain.h:33:29: fatal error: libvirt/libvirt.h: No such file or directory
|
||||
# compilation terminated.
|
||||
# make[3]: *** [LibvirtGObject-1.0.gir] Error 1
|
||||
preConfigure = ''
|
||||
export NIX_CFLAGS_COMPILE="-fstack-protector-all -I${libvirt}/include"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library for working with virtual machines";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user