2006-08-16 17:54:32 -07:00
|
|
|
# the other stdenv could change the SHELL variable,
|
|
|
|
# so we have to remember its value.
|
|
|
|
origShell=$SHELL
|
|
|
|
origGcc=$GCC
|
|
|
|
|
2006-08-15 14:25:14 -07:00
|
|
|
source $STDENV/setup
|
|
|
|
|
|
|
|
mkdir $OUT
|
|
|
|
|
2006-08-16 17:54:32 -07:00
|
|
|
SHELL=$origShell
|
|
|
|
GCC=$origGcc
|
|
|
|
|
2006-12-31 11:52:41 -08:00
|
|
|
export NIX_BUILD_TOP=$(pwd)
|
|
|
|
|
2006-08-15 14:25:14 -07:00
|
|
|
substitute "$SETUP" "$OUT/setup" \
|
|
|
|
--subst-var INITIALPATH \
|
|
|
|
--subst-var GCC \
|
|
|
|
--subst-var SHELL
|