From 8e2956c4cb28d21cbeed8b56464558a2c8b445c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?=
 <viric@vicerveza.homeunix.net>
Date: Mon, 9 Mar 2009 10:42:24 +0000
Subject: [PATCH] Fixing wxGTK28 for x86_64, for the mesa references.

svn path=/nixpkgs/trunk/; revision=14454
---
 pkgs/development/libraries/wxGTK-2.8/default.nix | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkgs/development/libraries/wxGTK-2.8/default.nix b/pkgs/development/libraries/wxGTK-2.8/default.nix
index 11d7a1e29f35..3afb4a826096 100644
--- a/pkgs/development/libraries/wxGTK-2.8/default.nix
+++ b/pkgs/development/libraries/wxGTK-2.8/default.nix
@@ -34,7 +34,10 @@ stdenv.mkDerivation {
   SEARCH_INCLUDE =
     "${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";
 
-  SEARCH_LIB = "${mesa}/lib";
+  SEARCH_LIB = if (stdenv.system == "x86_64-linux") then
+    "${mesa}/lib64"
+    else 
+    "${mesa}/lib";
 
   # Work around a bug in configure.
   NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";