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

Add an easy way to use packages inside run_shell #615

Open
fionera opened this issue Nov 28, 2024 · 1 comment
Open

Add an easy way to use packages inside run_shell #615

fionera opened this issue Nov 28, 2024 · 1 comment
Labels

Comments

@fionera
Copy link

fionera commented Nov 28, 2024

Is your feature request related to a problem? Please describe.
As a developer I want to invoke external buildsystems/tools that may do execs themselves. For this I would need a proper PATH with all nixpkgs I want configured.

Describe the solution you'd like
Something like run_shell but with another argument where either one label to a nix_shell_env (bad name i know) which contains all packages, or the list of packages are supplied and fitted into the run_shell environment. Bonus points if include paths etc are correct set

Describe alternatives you've considered
Hacking into nix-shell implementation to get a shell file I can use for entering. Doing it manually by including all packages manually, try rules_sh (sadly won't work in my case because of bzlmod dependency trees).

Additional context
Basically I want to use rules_nixpkgs as bazel sandbox provider

@aherrmann
Copy link
Member

Link to corresponding Bazel Community Slack thread.

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

No branches or pull requests

3 participants