Skip to content

Commit

Permalink
Use shell.nix, if it exists, in nix-persistent-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed May 16, 2017
1 parent 9f790fa commit 7ebe96b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions misc/bin/nix-persistent-shell
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ for arg in "$@"; do
done

if [[ "$env" == "" ]]; then
show_help
exit 1
if [[ -e "shell.nix" ]]; then
env=shell
NIX_ENV_DIR=.
GC_ROOT_DIR=.gcroots
else
show_help
exit 1
fi
fi

# delete gc roots
Expand Down

0 comments on commit 7ebe96b

Please sign in to comment.