summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/video/RealPlayer/builder.sh18
-rw-r--r--pkgs/applications/video/RealPlayer/default.nix19
-rw-r--r--pkgs/system/all-packages-generic.nix7
3 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/video/RealPlayer/builder.sh b/pkgs/applications/video/RealPlayer/builder.sh
new file mode 100644
index 000000000000..f9baf5ce6381
--- /dev/null
+++ b/pkgs/applications/video/RealPlayer/builder.sh
@@ -0,0 +1,18 @@
+. $stdenv/setup
+. $makeWrapper
+
+ensureDir $out/real
+
+skip=143209
+
+(dd bs=1 count=$skip of=/dev/null && dd) < $src | (cd $out/real && tar xvfj -)
+
+rm -rf $out/real/Bin $out/real/postinst
+
+glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
+patchelf --interpreter $glibc/lib/ld-linux.so.* $out/real/realplay.bin
+
+ensureDir $out/bin
+makeWrapper "$out/real/realplay.bin" "$out/bin/realplay" \
+    --set HELIX_LIBS "$out/real" \
+    --suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)"
diff --git a/pkgs/applications/video/RealPlayer/default.nix b/pkgs/applications/video/RealPlayer/default.nix
new file mode 100644
index 000000000000..530577f5977a
--- /dev/null
+++ b/pkgs/applications/video/RealPlayer/default.nix
@@ -0,0 +1,19 @@
+{stdenv, fetchurl, libstdcpp5, glib, pango, atk, gtk, libX11}:
+
+# Note that RealPlayer 10 need libstdc++.so.5, i.e., GCC 3.3, not 3.4.
+
+assert stdenv.system == "i686-linux";
+
+stdenv.mkDerivation {
+  name = "RealPlayer-10.0.3.748-GOLD";
+
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://software-dl.real.com/12ae5c4cc79d437fa106/unix/RealPlayer10GOLD.bin;
+    md5 = "70a88bcae0ab3e177e6fadecd6b8be24";
+  };
+
+  makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
+
+  libPath = [libstdcpp5 glib pango atk gtk libX11];
+}
diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix
index ab6cf03b2e2f..846787750d91 100644
--- a/pkgs/system/all-packages-generic.nix
+++ b/pkgs/system/all-packages-generic.nix
@@ -1121,6 +1121,13 @@ rec {
     inherit fetchurl stdenv x11 xineLib libpng;
   };
 
+  RealPlayer = import ../applications/video/RealPlayer {
+    inherit fetchurl stdenv;
+    inherit (gtkLibs) glib pango atk gtk;
+    inherit (xlibs) libX11;
+    libstdcpp5 = gcc33.gcc;
+  };
+
   zapping = (import ../applications/video/zapping) {
     inherit fetchurl stdenv pkgconfig perl python 
             gettext zvbi libjpeg libpng x11