2020-04-30 14:05:29 +03:00
|
|
|
set -e
|
2020-04-30 15:39:26 +03:00
|
|
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
2020-07-06 19:34:58 +03:00
|
|
|
|
2020-04-30 14:05:29 +03:00
|
|
|
export IN_NIX_SHELL=impure
|
|
|
|
export dontAddDisableDepTrack=1
|
2020-07-06 19:34:58 +03:00
|
|
|
|
2020-04-30 14:05:29 +03:00
|
|
|
if [[ -n $stdenv ]]; then
|
|
|
|
source $stdenv/setup
|
|
|
|
fi
|
2020-07-06 19:34:58 +03:00
|
|
|
|
2021-05-13 02:20:49 +03:00
|
|
|
if [ -e .attrs.sh ]; then
|
|
|
|
__olist="${!outputs[@]}"
|
|
|
|
else
|
|
|
|
__olist=$outputs
|
|
|
|
fi
|
|
|
|
|
|
|
|
for __output in $__olist; do
|
2020-08-28 19:16:03 +03:00
|
|
|
if [[ -z $__done ]]; then
|
|
|
|
export > ${!__output}
|
|
|
|
set >> ${!__output}
|
|
|
|
__done=1
|
|
|
|
else
|
|
|
|
echo -n >> ${!__output}
|
|
|
|
fi
|
|
|
|
done
|