3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/mozart/builder.sh

27 lines
547 B
Bash
Raw Normal View History

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
2015-10-03 22:23:11 +01:00
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 \
--set TK_LIBRARY $TK_LIBRARY
2014-10-11 20:05:46 +01:00
done