2009-09-02 14:24:08 +01:00
|
|
|
{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libXt, glibc
|
2009-05-13 15:47:10 +01:00
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
2006-02-10 12:15:04 +00:00
|
|
|
|
2009-09-02 14:24:08 +01:00
|
|
|
assert stdenv.isLinux;
|
2006-09-29 10:06:56 +01:00
|
|
|
|
2007-10-30 01:51:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-09-02 14:24:08 +01:00
|
|
|
name = "opera-10.00";
|
2007-11-28 02:10:27 +00:00
|
|
|
|
2006-02-10 12:15:04 +00:00
|
|
|
builder = ./builder.sh;
|
2009-09-02 14:24:08 +01:00
|
|
|
|
|
|
|
src =
|
|
|
|
if stdenv.system == "i686-linux" then
|
2007-11-28 02:10:27 +00:00
|
|
|
fetchurl {
|
2009-09-02 14:24:08 +01:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1000/final/en/i386/shared/${name}.gcc4-shared-qt3.i386.tar.gz";
|
2009-09-02 13:23:01 +01:00
|
|
|
sha256 = "1l87rxdzq2mb92jbwj4gg79j177yzyfbkqb52gcdwicw8jcmhsad";
|
2009-09-02 14:24:08 +01:00
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
2007-11-28 02:10:27 +00:00
|
|
|
fetchurl {
|
2009-09-02 14:24:08 +01:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1000/final/en/x86_64/${name}.gcc4-shared-qt3.x86_64.tar.gz";
|
2009-09-02 13:23:01 +01:00
|
|
|
sha256 = "0w9a56j3jz0bjdj98k6n4xmrjnkvlxm32cfvh2c0f5pvgwcr642i";
|
2009-09-02 14:24:08 +01: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 19:18:23 +01:00
|
|
|
dontStrip = 1;
|
2009-09-02 14:24:08 +01:00
|
|
|
|
|
|
|
# `operapluginwrapper' requires libXt. Adding it makes startup faster
|
|
|
|
# and omits error messages (on x86).
|
|
|
|
libPath = stdenv.lib.makeLibraryPath
|
|
|
|
[ stdenv.gcc.gcc glibc qt zlib libX11 libXt libXext libSM libICE ];
|
2008-01-30 19:49:42 +00:00
|
|
|
|
2009-05-13 15:47:10 +01: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 14:24:08 +01:00
|
|
|
description = "The Opera web browser";
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2006-02-10 12:15:04 +00:00
|
|
|
}
|