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