3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/stdenv/mingw/builder.sh

18 lines
312 B
Bash
Raw Normal View History

# the other stdenv could change the SHELL variable,
# so we have to remember its value.
origShell=$SHELL
origGcc=$GCC
source $STDENV/setup
source $SUBSTITUTE
mkdir $OUT
SHELL=$origShell
GCC=$origGcc
substitute "$SETUP" "$OUT/setup" \
--subst-var INITIALPATH \
--subst-var GCC \
--subst-var SHELL