Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix-shell requires user to manually specify runtime dependency #355

Closed
thespacepanda opened this issue Sep 24, 2014 · 4 comments
Closed

Comments

@thespacepanda
Copy link

When using zsh as the default shell, nix-shell seems to have issues with the prompt and handling normal arrow key functionality. I believe the cause of this is that nix-shell doesn't automatically pull in pkgs.bashInteractive (which has readline builtin), but uses pkgs.bash instead. I fixed this on my machine by making sure bashInteractive was installed in my environment.systemPackages. It would be nice if nix-shell pulled this in automatically.

@edolstra
Copy link
Member

nix-shell has no knowledge of bash vs. bashInteractive (and it wouldn't have a way to build either). It just calls bash in your $PATH, which is assumed to be readline-enabled. You can override this by setting the NIX_BUILD_SHELL environment variable.

@thespacepanda
Copy link
Author

Hm. Okay. So this is more an issue with nixos not ensuring bashInteractive is installed when bash isn't the default shell?

@edolstra
Copy link
Member

Yeah, I think so.

@thespacepanda
Copy link
Author

I have opened a new ticket on the nixpkgs repo here and I am closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants