2009-09-02 13:24:08 +00:00
|
|
|
{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libXt, glibc
|
2010-12-14 20:32:49 +00:00
|
|
|
, makeDesktopItem, freetype, fontconfig, libXft, libXrender
|
2009-05-13 14:47:10 +00:00
|
|
|
}:
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2009-09-13 10:54:47 +00:00
|
|
|
assert stdenv.isLinux && stdenv.gcc.gcc != null;
|
2006-09-29 09:06:56 +00:00
|
|
|
|
2007-10-30 01:51:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-12-14 15:56:22 +00:00
|
|
|
name = "opera-10.63";
|
2007-11-28 02:10:27 +00:00
|
|
|
|
2006-02-10 12:15:04 +00:00
|
|
|
builder = ./builder.sh;
|
2009-09-02 13:24:08 +00:00
|
|
|
|
|
|
|
src =
|
|
|
|
if stdenv.system == "i686-linux" then
|
2007-11-28 02:10:27 +00:00
|
|
|
fetchurl {
|
2010-12-14 15:56:22 +00:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1063/opera-10.63-6450.i386.linux.tar.bz2";
|
|
|
|
sha256 = "dd105d602a4b8897749a4cb9610f8bfe2d07d4f4cc9bf3905930c65592737259";
|
2009-09-02 13:24:08 +00:00
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
2007-11-28 02:10:27 +00:00
|
|
|
fetchurl {
|
2010-12-14 15:56:22 +00:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1063/opera-10.63-6450.x86_64.linux.tar.bz2";
|
|
|
|
sha256 = "da8ae14cf317364ab0295102220246b205bf30c59c00cadb571395c90dda7c74";
|
2009-09-02 13:24:08 +00:00
|
|
|
}
|
|
|
|
else throw "Opera is not supported on ${stdenv.system} (only i686-linux and x86_64 linux are supported)";
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2008-10-04 18:18:23 +00:00
|
|
|
dontStrip = 1;
|
2009-09-02 13:24:08 +00:00
|
|
|
|
|
|
|
# `operapluginwrapper' requires libXt. Adding it makes startup faster
|
|
|
|
# and omits error messages (on x86).
|
2009-09-10 16:57:45 +00:00
|
|
|
libPath =
|
2010-12-14 20:32:49 +00:00
|
|
|
let list = [ stdenv.gcc.gcc glibc qt zlib libX11 libXt libXext libSM libICE libXft freetype fontconfig
|
|
|
|
libXrender];
|
2009-09-10 16:57:45 +00:00
|
|
|
in stdenv.lib.makeLibraryPath list
|
2009-09-11 18:55:14 +00:00
|
|
|
+ ":" + (if stdenv.system == "x86_64-linux" then stdenv.lib.makeSearchPath "lib64" list else "");
|
2008-01-30 19:49:42 +00:00
|
|
|
|
2009-05-13 14:47:10 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Opera";
|
|
|
|
exec = "opera";
|
|
|
|
icon = "opera";
|
|
|
|
comment = "Opera Web Browser";
|
|
|
|
desktopName = "Opera";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
categories = "Application;Network;";
|
|
|
|
};
|
|
|
|
|
2008-01-30 19:49:42 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.opera.com;
|
2009-09-02 13:24:08 +00:00
|
|
|
description = "The Opera web browser";
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2006-02-10 12:15:04 +00:00
|
|
|
}
|