28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
24 lines
456 B
Bash
24 lines
456 B
Bash
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
|
|
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
--set-rpath $libPath \
|
|
$f
|
|
continue;
|
|
fi
|
|
wrapProgram $f \
|
|
--set OZHOME $out
|
|
done
|