nixpkgs/pkgs/applications/video/RealPlayer/builder.sh
Eelco Dolstra b90781ec21 * Renamed orig-glibc -> orig-libc in some places, and in others, use
the new $NIX_GCC/nix-support/dynamic-linker file to locate the
  dynamic linker directly (don't hardcode ld-linux.so.2).

svn path=/nixpkgs/trunk/; revision=6873
2006-10-27 12:43:32 +00:00

21 lines
620 B
Bash

source $stdenv/setup
source $makeWrapper
ensureDir $out/real
skip=143273 # Look for "BZh91" in the executable.
(dd bs=1 count=$skip of=/dev/null && dd) < $src | (cd $out/real && tar xvfj -)
rm -rf $out/real/Bin $out/real/postinst
patchelf --interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $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)"
echo "$libstdcpp5/lib" > $out/real/mozilla/extra-library-path
echo "$out/bin" > $out/real/mozilla/extra-bin-path