Index: builder.sh
===================================================================
--- builder.sh	(revision 24550)
+++ builder.sh	(working copy)
@@ -5,11 +5,11 @@
 }
 
 installPhase() {
-    substituteInPlace install.sh --replace /bin/pwd pwd
+    substituteInPlace install --replace /bin/pwd pwd --replace /usr/local $out
+
+    [ -e $out ] || mkdir $out
     
-    # Note: the "no" is because the install scripts asks whether we
-    # want to install icons in some system-wide directories.
-    echo no | ./install.sh --prefix=$out
+    ./install --text --quiet --system
 
     [ -z ${system##*64*} ] && suf=64
 
Index: default.nix
===================================================================
--- default.nix	(revision 24550)
+++ default.nix	(working copy)
@@ -1,24 +1,26 @@
-{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libXt, glibc
+{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libXt
+, libXft, freetype, fontconfig, libXrender
+, glibc
 , makeDesktopItem
 }:
 
 assert stdenv.isLinux && stdenv.gcc.gcc != null;
 
 stdenv.mkDerivation rec {
-  name = "opera-10.10";
+  name = "opera-10.63";
 
   builder = ./builder.sh;
   
   src =
     if stdenv.system == "i686-linux" then
       fetchurl {
-        url = "http://mirror.liteserver.nl/pub/opera/linux/1010/final/en/i386/shared/opera-10.10.gcc4-shared-qt3.i386.tar.bz2";
-        sha256 = "0y8xahwgx5jw83ky4zkw8ixyfgnd2xg9k0zq15yivhimi60fsppc";
+        url = "http://get.opera.com/pub/opera/linux/1063/opera-10.63-6450.i386.linux.tar.bz2";
+        sha256 = "0nbjff95biihb68g76ycyka0fbgyic7n3fack9s9g22b59h5s46x";
       }
     else if stdenv.system == "x86_64-linux" then
       fetchurl {
-        url = "http://mirror.liteserver.nl/pub/opera/linux/1010/final/en/x86_64/opera-10.10.gcc4-shared-qt3.x86_64.tar.bz2";
-        sha256 = "1z0zgalqv9lnf1jsg3zg9diqfyszh75r7m1dbkifkdawn4zv4q3s";
+        url = "http://get.opera.com/pub/opera/linux/1063/opera-10.63-6450.x86_64.linux.tar.bz2";
+        sha256 = "0x3wv86wk58kazdwl04wqlqby1dj8q1240ji56q4ldhpyd6f32ns";
       }
     else throw "Opera is not supported on ${stdenv.system} (only i686-linux and x86_64 linux are supported)";
 
@@ -27,7 +29,7 @@
   # `operapluginwrapper' requires libXt. Adding it makes startup faster
   # and omits error messages (on x86).
   libPath =
-    let list = [ stdenv.gcc.gcc glibc qt zlib libX11 libXt libXext libSM libICE];
+    let list = [ stdenv.gcc.gcc glibc qt zlib libX11 libXt libXext libSM libICE libXft libXrender freetype fontconfig];
     in stdenv.lib.makeLibraryPath list
         + ":" + (if stdenv.system == "x86_64-linux" then stdenv.lib.makeSearchPath "lib64" list else "");
 
