forked from mirrors/nixpkgs
688fff92de
- clone of fetchurl that invokes a given chmod to workaround problems with inappropriate file permissions (executable files are not allowed by Nix) - cygpath tool to determine the full windows path of a cygwin tool. This tool is used to give fetchurl the windows path to chmod. - native curl.exe - gcc-wrapper no longer used - all-packages.nix: allows stdenv to specify fetchurl. svn path=/nixpkgs/trunk/; revision=6140
35 lines
403 B
Bash
35 lines
403 B
Bash
if test -z "$out"; then
|
|
out="$OUT"
|
|
initialPath="$INITIALPATH"
|
|
shell="$SHELL"
|
|
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
|