aboutsummaryrefslogtreecommitdiff
path: root/src/nix/get-env.sh
blob: 2e0e8356179a4aaf725ca24f948755c1255744aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set -e
if [ -e .attrs.sh ]; then source .attrs.sh; fi

outputs=$_outputs_saved
for __output in $_outputs_saved; do
    declare "$__output"="$out"
done
unset _outputs_saved __output

export IN_NIX_SHELL=impure
export dontAddDisableDepTrack=1

if [[ -n $stdenv ]]; then
    source $stdenv/setup
fi

export > $out
set >> $out