do watch_file "$e"; done
hash=$(shasum -a 256 "${nixshell_sources[@]}" | shasum -a 256 | cut -c -64)
cache=.cache/nix-shell/"$hash"
+unset DIRENV_DUMP_FILE_PATH
if test -e "$cache/dump"
then
log_status "reusing $cache/"
nix-store >/dev/null --indirect --add-root "$cache"/shell.dep \
--realise $(nix-store --query --references $cache/shell.drv) \
${OFFLINE:+--option substituters ""} &&
- direnv_load sh -c "nix-shell ${TRACE:+--show-trace} --pure \
- --run \"$direnv dump | tee $cache/dump >\$DIRENV_DUMP_FILE_PATH\" \
+ direnv_load sh -c "nix-shell ${TRACE:+--show-trace} \
+ --run \"DIRENV_DUMP_FILE_PATH= $direnv dump | tee $cache/dump >\$DIRENV_DUMP_FILE_PATH\" \
${OFFLINE:+--option substituters ""}" &&
find .cache/nix-shell -mindepth 1 -maxdepth 1 -not -name "$hash" -exec rm -rf {} + || {
rm -rf "$PWD/.cache/nix-shell/$hash"