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-09-02 14:23:01 +02:00
|
|
|
version = "10.0";
|
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-09-02 14:23:01 +02:00
|
|
|
url = http://mirror.liteserver.nl/pub/opera/linux/1000/final/en/i386/shared/opera-10.00.gcc4-shared-qt3.i386.tar.gz ;
|
|
|
|
sha256 = "1l87rxdzq2mb92jbwj4gg79j177yzyfbkqb52gcdwicw8jcmhsad";
|
2007-11-28 03:10:27 +01:00
|
|
|
} else if (stdenv.system == "x86_64-linux") then
|
|
|
|
fetchurl {
|
2009-09-02 14:23:01 +02:00
|
|
|
url = http://mirror.liteserver.nl/pub/opera/linux/1000/final/en/x86_64/opera-10.00.gcc4-shared-qt3.x86_64.tar.gz ;
|
|
|
|
sha256 = "0w9a56j3jz0bjdj98k6n4xmrjnkvlxm32cfvh2c0f5pvgwcr642i";
|
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
|
|
|
}
|