mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
Merge pull request #90626 from tteggel/fix-open-vm-tools-gdk-pixbuf-xlib
open-vm-tools: fix build
This commit is contained in:
commit
af729e9751
@ -1,7 +1,7 @@
|
||||
{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook,
|
||||
fuse, libmspack, openssl, pam, xercesc, icu, libdnet, procps,
|
||||
libX11, libXext, libXinerama, libXi, libXrender, libXrandr, libXtst,
|
||||
pkgconfig, glib, gtk3, gtkmm3, iproute, dbus, systemd, which,
|
||||
pkgconfig, glib, gdk-pixbuf-xlib, gtk3, gtkmm3, iproute, dbus, systemd, which,
|
||||
withX ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -21,9 +21,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
||||
buildInputs = [ fuse glib icu libdnet libmspack openssl pam procps xercesc ]
|
||||
++ lib.optionals withX [ 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 = [
|
||||
./recognize_nixos.patch
|
||||
./find_gdk_pixbuf_xlib.patch #See https://github.com/vmware/open-vm-tools/pull/438
|
||||
];
|
||||
|
||||
patches = [ ./recognize_nixos.patch ];
|
||||
postPatch = ''
|
||||
# Build bugfix for 10.1.0, stolen from Arch PKGBUILD
|
||||
mkdir -p common-agent/etc/config
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff --git a/lib/appUtil/Makefile.am b/lib/appUtil/Makefile.am
|
||||
index a0d8e391..899cd4e9 100644
|
||||
--- a/lib/appUtil/Makefile.am
|
||||
+++ b/lib/appUtil/Makefile.am
|
||||
@@ -21,4 +21,6 @@ libAppUtil_la_SOURCES =
|
||||
libAppUtil_la_SOURCES += appUtil.c
|
||||
libAppUtil_la_SOURCES += appUtilX11.c
|
||||
|
||||
-AM_CFLAGS = @GTK_CPPFLAGS@
|
||||
+AM_CFLAGS =
|
||||
+AM_CFLAGS += @GTK_CPPFLAGS@
|
||||
+AM_CFLAGS += @GDK_PIXBUF_XLIB2_CPPFLAGS@
|
Loading…
Reference in New Issue
Block a user