2006-07-14 11:59:38 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2012-04-23 15:47:31 +00:00
|
|
|
for i in $binaries
|
|
|
|
do
|
|
|
|
ln -s "/usr/bin/$i" "$out/bin/"
|
2006-07-14 17:11:39 +00:00
|
|
|
done
|
2012-04-23 15:47:31 +00: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"
|