Skip to content

Commit

Permalink
nix develop: Filter out NIX_REMOTE
Browse files Browse the repository at this point in the history
When recursive Nix is enabled, NIX_REMOTE is set to
unix:///build/.nix-socket, which doesn't work outside of the sandbox.
  • Loading branch information
edolstra committed Jun 15, 2021
1 parent 8e6ee1b commit e6150de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nix/develop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ struct Common : InstallableCommand, MixProfile
"NIX_BUILD_TOP",
"NIX_ENFORCE_PURITY",
"NIX_LOG_FD",
"NIX_REMOTE",
"PPID",
"PWD",
"SHELLOPTS",
Expand Down

1 comment on commit e6150de

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-14/13754/1

Please sign in to comment.