2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
source $makeWrapper
|
2005-03-12 13:53:03 +01:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/real
|
2005-03-12 13:53:03 +01:00
|
|
|
|
2006-06-29 17:46:24 +02:00
|
|
|
skip=143273 # Look for "BZh91" in the executable.
|
2005-03-12 13:53:03 +01:00
|
|
|
|
|
|
|
(dd bs=1 count=$skip of=/dev/null && dd) < $src | (cd $out/real && tar xvfj -)
|
|
|
|
|
|
|
|
rm -rf $out/real/Bin $out/real/postinst
|
|
|
|
|
2006-10-27 14:43:32 +02:00
|
|
|
patchelf --interpreter $(cat $NIX_GCC/nix-support/dynamic-linker) $out/real/realplay.bin
|
2005-03-12 13:53:03 +01:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2005-03-12 13:53:03 +01:00
|
|
|
makeWrapper "$out/real/realplay.bin" "$out/bin/realplay" \
|
|
|
|
--set HELIX_LIBS "$out/real" \
|
|
|
|
--suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)"
|
2005-03-12 14:35:27 +01:00
|
|
|
|
2008-06-14 23:42:07 +02:00
|
|
|
#echo "$libstdcpp5/lib" > $out/real/mozilla/extra-library-path # !!! must be updated, use patchelf --rpath
|
2005-03-12 14:35:27 +01:00
|
|
|
echo "$out/bin" > $out/real/mozilla/extra-bin-path
|