nixpkgs/pkgs/stdenv/mingw/simple-stdenv/builder.sh
Martin Bravenboer 56315425c9 Initial work on MinGW/MSYS standard environment
svn path=/nixpkgs/trunk/; revision=6122
2006-08-15 14:46:41 +00:00

27 lines
318 B
Bash

setupPath=
for i in $initialPath; do
setupPath=$setupPath${setupPath:+:}$i
done
PATH=$setupPath
echo $setupPath
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