2007-11-28 02:10:27 +00:00
|
|
|
{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libstdcpp5, glibc
|
2009-05-13 14:47:10 +00:00
|
|
|
, motif ? null, libXt ? null
|
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2006-09-29 09:06:56 +00:00
|
|
|
assert motif != null -> libXt != null;
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2006-02-28 12:03:35 +00:00
|
|
|
# !!! Add Xinerama and Xrandr dependencies? Or should those be in Qt?
|
|
|
|
|
2006-09-29 09:06:56 +00:00
|
|
|
# Hm, does Opera 9.x still use Motif for anything?
|
|
|
|
|
2007-10-30 01:51:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-05-10 19:39:16 +00:00
|
|
|
version = "9.64";
|
2007-10-30 01:51:15 +00:00
|
|
|
name = "opera-${version}";
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2007-11-28 02:10:27 +00:00
|
|
|
inherit libstdcpp5;
|
|
|
|
|
2006-02-10 12:15:04 +00:00
|
|
|
builder = ./builder.sh;
|
2007-11-28 02:10:27 +00:00
|
|
|
src = if (stdenv.system == "i686-linux") then
|
|
|
|
fetchurl {
|
2009-05-10 19:39:16 +00: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 02:10:27 +00:00
|
|
|
} else if (stdenv.system == "x86_64-linux") then
|
|
|
|
fetchurl {
|
2009-05-13 14:47:10 +00: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 02:10:27 +00:00
|
|
|
} else throw "unsupported platform ${stdenv.system} (only i686-linux and x86_64 linux supported yet)";
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2008-10-04 18:18:23 +00:00
|
|
|
dontStrip = 1;
|
2007-11-28 02:10:27 +00:00
|
|
|
# operapluginwrapper seems to require libXt ?
|
|
|
|
# Adding it makes startup faster and omits error messages (on x68)
|
2006-09-29 09:06:56 +00:00
|
|
|
libPath =
|
2007-11-28 02:10:27 +00:00
|
|
|
[glibc qt motif zlib libX11 libXt libXext libSM libICE libstdcpp5]
|
|
|
|
++ (if motif != null then [motif ] 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;
|
|
|
|
};
|
2006-02-10 12:15:04 +00:00
|
|
|
}
|