mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
c01f509e44
if theres a source $stdenv then this is needed for structuredAttrs
16 lines
340 B
Bash
Executable File
16 lines
340 B
Bash
Executable File
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
|
source $stdenv/setup
|
|
|
|
tar xf $src
|
|
cd */
|
|
tarballdir=$(pwd)
|
|
for i in *.tar; do tar xvf $i; done
|
|
echo "Deploying binaries.."
|
|
mkdir $out
|
|
cd $out
|
|
for i in $tarballdir/*.gz; do tar xvf $i; done
|
|
echo 'Creating ppc* symlink..'
|
|
for i in $out/lib/fpc/*/ppc*; do
|
|
ln -fs $i $out/bin/$(basename $i)
|
|
done
|