summary refs log tree commit diff
path: root/pkgs/stdenv/mingw/builder.sh
blob: 5a9f9749a4f8f4fe0acb5a1ecc640f4631a6af15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# the other stdenv could change the SHELL variable,
# so we have to remember its value.
origShell=$SHELL
origGcc=$GCC

source $STDENV/setup

mkdir $OUT

SHELL=$origShell
GCC=$origGcc

export NIX_BUILD_TOP=$(pwd)

substitute "$SETUP" "$OUT/setup" \
    --subst-var INITIALPATH \
    --subst-var GCC \
    --subst-var SHELL