Skip to content

Commit

Permalink
wxgtk: explicitly link to libX11 and libcairo
Browse files Browse the repository at this point in the history
(cherry picked from commit 5471eed)
  • Loading branch information
abbradar committed Mar 27, 2016
1 parent 5ce9f24 commit 3e30c35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/libraries/wxGTK-2.8/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gtk, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
, gstreamer, gst_plugins_base, GConf
, gstreamer, gst_plugins_base, GConf, libX11, cairo
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true,
}:

Expand All @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sha256 = "1l1w4i113csv3bd5r8ybyj0qpxdq83lj6jrc5p7cc10mkwyiagqz";
};

buildInputs = [ gtk libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer gst_plugins_base GConf ]
buildInputs = [ gtk libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer gst_plugins_base GConf libX11 cairo ]
++ optional withMesa mesa;

nativeBuildInputs = [ pkgconfig ];
Expand All @@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
+ optionalString withMesa "${mesa}/lib ";

# Work around a bug in configure.
NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";
NIX_CFLAGS_COMPILE = [ "-DHAVE_X11_XLIB_H=1" "-lX11" "-lcairo" ];

preConfigure = "
substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
Expand Down

0 comments on commit 3e30c35

Please sign in to comment.