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

export IN_NIX_SHELL=impure
export dontAddDisableDepTrack=1

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

for __output in $outputs; do
    if [[ -z $__done ]]; then
        export > ${!__output}
        set >> ${!__output}
        __done=1
    else
        echo -n >> ${!__output}
    fi
done