about summary refs log tree commit diff
path: root/pkgs/development/libraries/wxGTK-2.8/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/wxGTK-2.8/default.nix')
-rw-r--r--pkgs/development/libraries/wxGTK-2.8/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/wxGTK-2.8/default.nix b/pkgs/development/libraries/wxGTK-2.8/default.nix
index e8543444140a..11d7a1e29f35 100644
--- a/pkgs/development/libraries/wxGTK-2.8/default.nix
+++ b/pkgs/development/libraries/wxGTK-2.8/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, pkgconfig, gtk, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
-, compat24 ? false, compat26 ? true, unicode ? true
+, mesa, compat24 ? false, compat26 ? true, unicode ? true,
 }:
 
 assert pkgconfig != null && gtk != null;
@@ -18,7 +18,7 @@ stdenv.mkDerivation {
 
   buildInputs = [
     pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib
-    libXinerama libSM libXxf86vm xf86vidmodeproto
+    libXinerama libSM libXxf86vm xf86vidmodeproto mesa
   ];
 
   configureFlags = [
@@ -27,17 +27,21 @@ stdenv.mkDerivation {
     (if compat26 then "--enable-compat26" else "--disable-compat26")
     "--disable-precomp-headers"
     (if unicode then "--enable-unicode" else "")
+    "--with-opengl"
   ];
 
   # This variable is used by configure to find some dependencies.
   SEARCH_INCLUDE =
     "${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";
 
+  SEARCH_LIB = "${mesa}/lib";
+
   # Work around a bug in configure.
   NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";
 
   preConfigure = "
     substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
+    substituteInPlace configure --replace 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB='
     substituteInPlace configure --replace /usr /no-such-path
   ";