aboutsummaryrefslogtreecommitdiff
path: root/src/nix/get-env.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-30 14:39:26 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-30 14:47:47 +0200
commitefe6c186eabeb85830be7bef9aea4dd7eb2357e7 (patch)
tree2ac4fbc2c2e43a0cb89e49e4d8416860d322d972 /src/nix/get-env.sh
parent2fcfc6c2c6ff144131d669ebfb2caa63c8b41417 (diff)
nix dev-shell: Support structured attrs
Tested against https://github.com/NixOS/nixpkgs/pull/72074. Fixes #3540.
Diffstat (limited to 'src/nix/get-env.sh')
-rw-r--r--src/nix/get-env.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/get-env.sh b/src/nix/get-env.sh
index 782f97b75..a25ec43a9 100644
--- a/src/nix/get-env.sh
+++ b/src/nix/get-env.sh
@@ -1,4 +1,5 @@
set -e
+if [ -e .attrs.sh ]; then source .attrs.sh; fi
export IN_NIX_SHELL=impure
export dontAddDisableDepTrack=1
if [[ -n $stdenv ]]; then