summary refs log tree commit diff
path: root/pkgs/stdenv/mingw/simple-stdenv/builder.sh
blob: 650f6fb082f73f5dd1d9672c5cfa8c52dcb56cf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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