diff --git a/pkgs/development/libraries/wxGTK-2.5/default.nix b/pkgs/development/libraries/wxGTK-2.5/default.nix
new file mode 100644
index 000000000000..6c6134b86982
--- /dev/null
+++ b/pkgs/development/libraries/wxGTK-2.5/default.nix
@@ -0,0 +1,29 @@
+{stdenv, fetchurl, pkgconfig, gtk, libXinerama, compat22 ? true}:
+
+assert pkgconfig != null && gtk != null;
+assert gtk.libtiff != null;
+assert gtk.libjpeg != null;
+assert gtk.libpng != null;
+assert gtk.libpng.zlib != null;
+
+stdenv.mkDerivation {
+  name = "wxGTK-2.5.2";
+
+  src = fetchurl {
+    url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.5.2.tar.bz2;
+    md5 = "b45874428b0164bfa5bd1a5a11b3eb4a";
+  };
+
+  buildInputs = [
+    pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib
+    libXinerama
+  ];
+
+  configureFlags = [
+    "--enable-gtk2"
+    (if compat22 then "--enable-compat22" else "--disable-compat22")
+    "--disable-precomp-headers"
+  ];
+
+  inherit gtk compat22;
+}
diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix
index af759af8a90c..f14bccc22cca 100644
--- a/pkgs/system/all-packages-generic.nix
+++ b/pkgs/system/all-packages-generic.nix
@@ -251,6 +251,14 @@ rec {
     profiledCompiler = gccWithProfiling;
   };
 
+  gccWrapped = (import ../build-support/gcc-wrapper) {
+    nativeTools = false;
+    nativeGlibc = false;
+    gcc = stdenv.gcc;
+    inherit (stdenv.gcc) binutils glibc;
+    inherit stdenv;
+  };
+
   gcc_static = (import ../stdenv/nix-linux/gcc-static) {
     inherit fetchurl stdenv;
   };
@@ -553,11 +561,18 @@ rec {
 
   gnome = import ../development/libraries/gnome {
     inherit fetchurl stdenv pkgconfig audiofile
-            flex bison popt perl zlib libxml2 bzip2;
+            flex bison popt perl zlib libxml2 bzip2
+            perlXMLParser;
     gtkLibs = gtkLibs22;
   };
 
-  wxGTK = (import ../development/libraries/wxGTK) {
+  wxGTK = (import ../development/libraries/wxGTK-2.5) {
+    inherit fetchurl stdenv pkgconfig;
+    inherit (gtkLibs) gtk;
+    inherit (xlibs) libXinerama;
+  };
+
+  wxGTK24 = (import ../development/libraries/wxGTK) {
     inherit fetchurl stdenv pkgconfig;
     inherit (gtkLibs22) gtk;
   };
@@ -780,7 +795,7 @@ rec {
   };
 
   vlc = (import ../applications/video/vlc) {
-    inherit fetchurl stdenv wxGTK libdvdcss libdvdplay
+    inherit fetchurl stdenv libdvdcss wxGTK libdvdplay
             mpeg2dec a52dec libmad x11;
     inherit (xlibs) libXv;
     alsa = alsaLib;
diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix
index 47d99943a7d1..f11012bfcb76 100644
--- a/pkgs/system/populate-cache.nix
+++ b/pkgs/system/populate-cache.nix
@@ -29,8 +29,7 @@ let {
     gnumake
     bisonnew
     flexnew
-    gcc
-    gcc34
+    gccWrapped
     aterm
     strategoxt
     xdoc
@@ -85,5 +84,5 @@ let {
   body = [
     i686LinuxPkgs
     powerpcDarwinPkgs
-  ];   
+  ];
 }