open-vm-tools: fix building with glib 2.68
This commit is contained in:
parent
ef2742bcde
commit
f2c51f546b
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook,
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook, fetchpatch,
|
||||||
fuse, libmspack, openssl, pam, xercesc, icu, libdnet, procps, libtirpc, rpcsvc-proto,
|
fuse, libmspack, openssl, pam, xercesc, icu, libdnet, procps, libtirpc, rpcsvc-proto,
|
||||||
libX11, libXext, libXinerama, libXi, libXrender, libXrandr, libXtst,
|
libX11, libXext, libXinerama, libXi, libXrender, libXrandr, libXtst,
|
||||||
pkg-config, glib, gdk-pixbuf-xlib, gtk3, gtkmm3, iproute2, dbus, systemd, which,
|
pkg-config, glib, gdk-pixbuf-xlib, gtk3, gtkmm3, iproute2, dbus, systemd, which,
|
||||||
@ -23,6 +23,18 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ fuse glib icu libdnet libmspack libtirpc openssl pam procps rpcsvc-proto xercesc ]
|
buildInputs = [ fuse glib icu libdnet libmspack libtirpc openssl pam procps rpcsvc-proto xercesc ]
|
||||||
++ lib.optionals withX [ gdk-pixbuf-xlib gtk3 gtkmm3 libX11 libXext libXinerama libXi libXrender libXrandr libXtst ];
|
++ lib.optionals withX [ gdk-pixbuf-xlib gtk3 gtkmm3 libX11 libXext libXinerama libXi libXrender libXrandr libXtst ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix building with glib 2.68. Remove after next release.
|
||||||
|
# We drop AUTHORS due to conflicts when applying.
|
||||||
|
# https://github.com/vmware/open-vm-tools/pull/505
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/vmware/open-vm-tools/commit/82931a1bcb39d5132910c7fb2ddc086c51d06662.patch";
|
||||||
|
stripLen = 1;
|
||||||
|
excludes = [ "AUTHORS" ];
|
||||||
|
sha256 = "0yz5hnngr5vd4416hvmh8734a9vxa18d2xd37kl7if0p9vik6zlg";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Build bugfix for 10.1.0, stolen from Arch PKGBUILD
|
# Build bugfix for 10.1.0, stolen from Arch PKGBUILD
|
||||||
mkdir -p common-agent/etc/config
|
mkdir -p common-agent/etc/config
|
||||||
|
Loading…
Reference in New Issue
Block a user