2009-09-02 15:24:08 +02:00
|
|
|
{ stdenv, fetchurl, qt, zlib, libX11, libXext, libSM, libICE, libXt, glibc
|
2009-05-13 16:47:10 +02:00
|
|
|
, makeDesktopItem
|
|
|
|
}:
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2009-09-13 12:54:47 +02:00
|
|
|
assert stdenv.isLinux && stdenv.gcc.gcc != null;
|
2006-09-29 11:06:56 +02:00
|
|
|
|
2007-10-30 02:51:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-06-03 01:35:39 +02:00
|
|
|
name = "opera-10.10";
|
2007-11-28 03:10:27 +01:00
|
|
|
|
2006-02-10 13:15:04 +01:00
|
|
|
builder = ./builder.sh;
|
2009-09-02 15:24:08 +02:00
|
|
|
|
|
|
|
src =
|
|
|
|
if stdenv.system == "i686-linux" then
|
2007-11-28 03:10:27 +01:00
|
|
|
fetchurl {
|
2010-06-03 01:35:39 +02:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1010/final/en/i386/shared/opera-10.10.gcc4-shared-qt3.i386.tar.bz2";
|
|
|
|
sha256 = "0y8xahwgx5jw83ky4zkw8ixyfgnd2xg9k0zq15yivhimi60fsppc";
|
2009-09-02 15:24:08 +02:00
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
2007-11-28 03:10:27 +01:00
|
|
|
fetchurl {
|
2010-06-03 01:35:39 +02:00
|
|
|
url = "http://mirror.liteserver.nl/pub/opera/linux/1010/final/en/x86_64/opera-10.10.gcc4-shared-qt3.x86_64.tar.bz2";
|
|
|
|
sha256 = "1z0zgalqv9lnf1jsg3zg9diqfyszh75r7m1dbkifkdawn4zv4q3s";
|
2009-09-02 15:24:08 +02:00
|
|
|
}
|
|
|
|
else throw "Opera is not supported on ${stdenv.system} (only i686-linux and x86_64 linux are supported)";
|
2006-02-10 13:15:04 +01:00
|
|
|
|
2008-10-04 20:18:23 +02:00
|
|
|
dontStrip = 1;
|
2009-09-02 15:24:08 +02:00
|
|
|
|
|
|
|
# `operapluginwrapper' requires libXt. Adding it makes startup faster
|
|
|
|
# and omits error messages (on x86).
|
2009-09-10 18:57:45 +02:00
|
|
|
libPath =
|
|
|
|
let list = [ stdenv.gcc.gcc glibc qt zlib libX11 libXt libXext libSM libICE];
|
|
|
|
in stdenv.lib.makeLibraryPath list
|
2009-09-11 20:55:14 +02:00
|
|
|
+ ":" + (if stdenv.system == "x86_64-linux" then stdenv.lib.makeSearchPath "lib64" list 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;
|
2009-09-02 15:24:08 +02:00
|
|
|
description = "The Opera web browser";
|
2008-01-30 20:49:42 +01:00
|
|
|
};
|
2006-02-10 13:15:04 +01:00
|
|
|
}
|