diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-02-10 12:15:04 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2006-02-10 12:15:04 +0000 |
commit | 26f98860c1b9785c20ffdcc820241880cf57ca16 (patch) | |
tree | 5a2817f98f6e02835f87932335cc1787cc29bc07 /pkgs/applications/networking/browsers/opera | |
parent | e6126b15b884c323d955d8f292afb1469e3c5c59 (diff) | |
download | nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar.gz nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar.bz2 nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar.lz nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar.xz nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.tar.zst nixlib-26f98860c1b9785c20ffdcc820241880cf57ca16.zip |
* Opera 8.51 (on Linux).
svn path=/nixpkgs/trunk/; revision=4782
Diffstat (limited to 'pkgs/applications/networking/browsers/opera')
-rw-r--r-- | pkgs/applications/networking/browsers/opera/builder.sh | 33 | ||||
-rw-r--r-- | pkgs/applications/networking/browsers/opera/default.nix | 16 |
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/opera/builder.sh b/pkgs/applications/networking/browsers/opera/builder.sh new file mode 100644 index 000000000000..a0dadf07a9d9 --- /dev/null +++ b/pkgs/applications/networking/browsers/opera/builder.sh @@ -0,0 +1,33 @@ +source $stdenv/setup + +buildPhase=buildPhase +buildPhase() { + true +} + +installPhase=installPhase +installPhase() { + # Note: the "no" is because the install scripts asks whether we + # want to install icons in some system-wide directories. + echo no | ./install.sh --prefix=$out + + glibc=$(cat $NIX_GCC/nix-support/orig-glibc) + + rpath=/no-such-path + for i in $libPath; do + rpath="$rpath:$i/lib" + done + + # !!! ugh, should fix this eventually; just make a normal gcc dependency + gcc=$(cat $NIX_GCC/nix-support/orig-gcc) + rpath="$rpath:$gcc/lib" + + for i in $out/lib/opera/*/opera $out/lib/opera/plugins/opera*; do + patchelf \ + --set-interpreter "$glibc/lib/ld-linux.so.2" \ + --set-rpath "$rpath" \ + "$i" + done +} + +genericBuild diff --git a/pkgs/applications/networking/browsers/opera/default.nix b/pkgs/applications/networking/browsers/opera/default.nix new file mode 100644 index 000000000000..f51b1f5cb28e --- /dev/null +++ b/pkgs/applications/networking/browsers/opera/default.nix @@ -0,0 +1,16 @@ +{stdenv, fetchurl, qt, zlib, libX11, motif ? null, libXt ? null, libXext ? null}: + +assert stdenv.system == "i686-linux"; +assert motif != null -> libXt != null && libXext != null; + +stdenv.mkDerivation { + name = "opera-8.51-20051114.6"; + + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.tiscali.nl/pub/mirrors/opera/linux/851/final/en/i386/opera-8.51-20051114.6-shared-qt.i386-en.tar.bz2; + md5 = "bf930c45023035ee4258b13b707176c2"; + }; + + libPath = [qt zlib libX11 motif libXt libXext]; +} |