2014-10-11 20:05:46 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
echo "unpacking $src..."
|
|
|
|
tar xvfz $src
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share
|
|
|
|
|
|
|
|
mv mozart*linux/bin/* $out/bin
|
|
|
|
mv mozart*linux/share/* $out/share
|
|
|
|
|
|
|
|
patchShebangs $out
|
|
|
|
|
|
|
|
for f in $out/bin/*; do
|
|
|
|
b=$(basename $f)
|
|
|
|
if [ $b == "ozemulator" ] || [ $b == "ozwish" ]; then
|
2014-12-17 18:11:30 +00:00
|
|
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
2014-10-11 20:05:46 +01:00
|
|
|
--set-rpath $libPath \
|
|
|
|
$f
|
|
|
|
continue;
|
|
|
|
fi
|
|
|
|
wrapProgram $f \
|
|
|
|
--set OZHOME $out
|
|
|
|
done
|