forked from mirrors/nixpkgs
5992b95b64
svn path=/nixpkgs/trunk/; revision=6124
34 lines
386 B
Bash
34 lines
386 B
Bash
if test -z "$out"; then
|
|
out="$OUT"
|
|
initialPath="$INITIALPATH"
|
|
fi
|
|
|
|
setupPath=
|
|
for i in $initialPath; do
|
|
setupPath=$setupPath${setupPath:+:}$i
|
|
done
|
|
|
|
PATH=$setupPath
|
|
export PATH
|
|
|
|
mkdir $out
|
|
|
|
cat > $out/setup <<EOF
|
|
PATH=$setupPath
|
|
export PATH
|
|
|
|
SHELL=$shell
|
|
export SHELL
|
|
|
|
# make fetchurl usable
|
|
header() {
|
|
echo "\$1"
|
|
}
|
|
|
|
stopNest() {
|
|
echo "Nothing to do"
|
|
}
|
|
EOF
|
|
|
|
chmod +x $out/setup
|