Skip to content

Commit

Permalink
Merge pull request #20 from ysndr/fix/pypi2nix
Browse files Browse the repository at this point in the history
Fix pypi2nix failing to spawn shell
  • Loading branch information
chisui authored Apr 7, 2020
2 parents a65382a + 5af91a4 commit 78e169e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nix-shell.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function nix-shell() {
then
PURE=1

# skip all other unary arguments
# skip all other unary arguments
elif [[ $key == "-"* ]]
then
IN_PACKAGES=0
Expand All @@ -52,7 +52,7 @@ function nix-shell() {
else
NIX_SHELL_PACKAGES="$NIX_SHELL_PACKAGES" \
NIX_BUILD_SHELL="$NIX_SHELL_PLUGIN_DIR/scripts/buildShellShim.zsh" \
NIX_EXECUTING_SHELL="$SHELL" \
command nix-shell "$@"
fi
}

2 changes: 1 addition & 1 deletion scripts/buildShellShim.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "$1" = "--rcfile" ]; then
shift
tmp="$(cat $1)"
echo ${tmp%exit} > $1
echo "zsh" >> $1
echo $NIX_EXECUTING_SHELL >> $1
bash $1
else
bash "$@"
Expand Down

0 comments on commit 78e169e

Please sign in to comment.