2007-11-28 03:10:27 +01:00
|
|
|
{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libstdcpp5, glibc
|
2009-05-13 16:47:10 +02:00
|
|
|
, motif ? null, libXt ? null
|
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2006-09-29 11:06:56 +02:00
|
|
|
assert motif != null -> libXt != null;
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2006-02-28 13:03:35 +01:00
|
|
|
# !!! Add Xinerama and Xrandr dependencies? Or should those be in Qt?
|
|
|
|
|
2006-09-29 11:06:56 +02:00
|
|
|
# Hm, does Opera 9.x still use Motif for anything?
|
|
|
|
|
2007-10-30 02:51:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-05-10 21:39:16 +02:00
|
|
|
version = "9.64";
|
2007-10-30 02:51:15 +01:00
|
|
|
name = "opera-${version}";
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2007-11-28 03:10:27 +01:00
|
|
|
inherit libstdcpp5;
|
|
|
|
|
2006-02-10 13:15:04 +01:00
|
|
|
builder = ./builder.sh;
|
2007-11-28 03:10:27 +01:00
|
|
|
src = if (stdenv.system == "i686-linux") then
|
|
|
|
fetchurl {
|
2009-05-10 21:39:16 +02:00
|
|
|
url = ftp://mirror.liteserver.nl/pub/opera/linux/964/final/en/i386/static/opera-9.64.gcc295-static-qt3.i386.tar.gz;
|
|
|
|
sha256 = "0ryza8wrqhlcs9hs3vs38ig3pjwifymxi8jsx83kvxg963p2k825";
|
2007-11-28 03:10:27 +01:00
|
|
|
} else if (stdenv.system == "x86_64-linux") then
|
|
|
|
fetchurl {
|
2009-05-13 16:47:10 +02:00
|
|
|
url = http://mirror.liteserver.nl/pub/opera/linux/964/final/en/x86_64/opera-9.64.gcc4-shared-qt3.x86_64.tar.gz ;
|
|
|
|
sha256 = "1zmj8lr1mx3d98adyd93kw2ldxxb13wzi6xzlgmb3dr4pn9j85n2";
|
2007-11-28 03:10:27 +01:00
|
|
|
} else throw "unsupported platform ${stdenv.system} (only i686-linux and x86_64 linux supported yet)";
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2008-10-04 20:18:23 +02:00
|
|
|
dontStrip = 1;
|
2007-11-28 03:10:27 +01:00
|
|
|
# operapluginwrapper seems to require libXt ?
|
|
|
|
# Adding it makes startup faster and omits error messages (on x68)
|
2006-09-29 11:06:56 +02:00
|
|
|
libPath =
|
2007-11-28 03:10:27 +01:00
|
|
|
[glibc qt motif zlib libX11 libXt libXext libSM libICE libstdcpp5]
|
|
|
|
++ (if motif != null then [motif ] else []);
|
2008-01-30 20:49:42 +01:00
|
|
|
|
2009-05-13 16:47:10 +02:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Opera";
|
|
|
|
exec = "opera";
|
|
|
|
icon = "opera";
|
|
|
|
comment = "Opera Web Browser";
|
|
|
|
desktopName = "Opera";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
categories = "Application;Network;";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-01-30 20:49:42 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.opera.com;
|
|
|
|
};
|
2006-02-10 13:15:04 +01:00
|
|
|
}
|