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

WIP nix-shell: Use bashInteractive from <nixpkgs> #1483

Conversation

Ericson2314
Copy link
Member

Backport of c94f3d5. Hopefully the extra dependency is no big deal--it is supposed to be minimal and Perl is going away soon anyways.

Don't merge yet because I still need to test.

CC @domenkozar

This adds about 0.1s to nix-shell runtime in the case where
bashInteractive already exists.

See discussion at NixOS/nixpkgs#27493.

Backport of 57a30e1
}
chomp $buildShell;
$buildShell += "/bin/bash";
if (! -x $buildShell) {
Copy link
Member Author

Choose a reason for hiding this comment

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

That is actually an executable test. Not sure which is better.

copumpkin added a commit to copumpkin/nixpkgs that referenced this pull request Jul 24, 2017
It's better than the eval solution this is adding back, but until we can
rely on a particular version of bash in nix-shell, this just breaks too
much stuff.

See NixOS/nix@c94f3d5
and NixOS/nix#1483 for the better long-term
solution.
@shlevy shlevy added the backlog label Apr 1, 2018
@grahamc
Copy link
Member

grahamc commented Sep 27, 2018

Probably not going to be merged now :)

@grahamc grahamc closed this Sep 27, 2018
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

Successfully merging this pull request may close these issues.

None yet

4 participants