mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
21 lines
663 B
Bash
21 lines
663 B
Bash
source $stdenv/setup
|
|
source $makeWrapper
|
|
|
|
mkdir -p $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
|
|
|
|
mkdir -p $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 # !!! must be updated, use patchelf --rpath
|
|
echo "$out/bin" > $out/real/mozilla/extra-bin-path
|