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

Split nix-shell logic #777

Open
copumpkin opened this issue Jan 20, 2016 · 6 comments
Open

Split nix-shell logic #777

copumpkin opened this issue Jan 20, 2016 · 6 comments
Assignees
Labels
cli The old and/or new command line interface significant Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc. UX The way in which users interact with Nix. Higher level than UI.

Comments

@copumpkin
Copy link
Member

I just ran into the usual issues with zsh support (e.g., #498 and #545)

In the longer run, it seems like the current implementation of nix-shell -p might not be sustainable (since it's basically pretending to run a dummy build, using constructs that assume bash), and perhaps should move to something more like a temporary nix-env behavior. Perhaps we should rename the current nix-shell to nix-build-shell for running and debugging nix builds (which legitimately assume bash), and nix-shell be something a bit more user-focused which supports custom shells and explicitly doesn't need its environment to be filled with assorted bash-centric build functions?

This also relates to #726

@copumpkin copumpkin changed the title Make nix-shell detect the parent shell and use that as the child shell Split nix-shell logic Jan 20, 2016
@Ericson2314
Copy link
Member

Big +1

@cstrahan
Copy link
Contributor

Is the idea to not run the stdenv's setup stuff in nix-shell? IIUC, that's what's responsible for setting up stuff like $PKG_CONFIG_PATH, and I'd hate to see duplication for that kind of logic. It might be more worthwhile to just avoid too many bashisms (granted, that might not be amenable to shells that deviate greatly from bash like syntax).

@nioncode
Copy link
Member

Any progress on this? I almost exclusively use nix-shell for developing (C/C++) like virtualenv and would prefer nix-shell to behave more user friendly.

@stale
Copy link

stale bot commented Feb 15, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 15, 2021
@stale
Copy link

stale bot commented May 2, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this as completed May 2, 2022
@thufschmitt thufschmitt reopened this Feb 24, 2023
@Ericson2314
Copy link
Member

CC @roberth we are, finally, getting to these issues somewhat.

@stale stale bot removed the stale label Mar 2, 2023
@fricklerhandwerk fricklerhandwerk added UX The way in which users interact with Nix. Higher level than UI. cli The old and/or new command line interface labels Mar 2, 2023
@roberth roberth added the significant Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc. label Jun 2, 2023
zolodev pushed a commit to zolodev/nix that referenced this issue Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli The old and/or new command line interface significant Novel ideas, large API changes, notable refactorings, issues with RFC potential, etc. UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

No branches or pull requests

10 participants