2006-07-14 13:59:38 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2012-04-23 17:47:31 +02:00
|
|
|
for i in $binaries
|
|
|
|
do
|
|
|
|
ln -s "/usr/bin/$i" "$out/bin/"
|
2006-07-14 19:11:39 +02:00
|
|
|
done
|
2012-04-23 17:47:31 +02:00
|
|
|
|
|
|
|
# MIG assumes the standard Darwin core utilities (e.g., `rm -d'), so
|
|
|
|
# let it see the impure directories.
|
|
|
|
cat > "$out/bin/mig" <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
export PATH="/usr/bin:/bin:\$PATH"
|
|
|
|
exec /usr/bin/mig "\$@"
|
|
|
|
EOF
|
|
|
|
chmod +x "$out/bin/mig"
|