aboutsummaryrefslogtreecommitdiff
path: root/src/nix/get-env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/get-env.sh')
-rw-r--r--src/nix/get-env.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nix/get-env.sh b/src/nix/get-env.sh
index 091c0f573..b6b8310a9 100644
--- a/src/nix/get-env.sh
+++ b/src/nix/get-env.sh
@@ -8,7 +8,13 @@ if [[ -n $stdenv ]]; then
source $stdenv/setup
fi
-for __output in $outputs; do
+if [ -e .attrs.sh ]; then
+ __olist="${!outputs[@]}"
+else
+ __olist=$outputs
+fi
+
+for __output in $__olist; do
if [[ -z $__done ]]; then
export > ${!__output}
set >> ${!__output}