pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / compilers / fpc / binary-builder.sh
blob568c3094107a34adb5c051a42b0c42d313a54b0d
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
4 tar xf $src
5 cd */
6 tarballdir=$(pwd)
7 for i in *.tar; do tar xvf $i; done
8 echo "Deploying binaries.."
9 mkdir $out
10 cd $out
11 for i in $tarballdir/*.gz; do tar xvf $i; done
12 echo 'Creating ppc* symlink..'
13 for i in $out/lib/fpc/*/ppc*; do
14 ln -fs $i $out/bin/$(basename $i)
15 done