You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in a bazel environment, you're usually in an execution sandbox. This sandbox does not have access to the various packages on your system level path, and only packages that are specifically loaded into Bazel.
What solution would you like?
I already use devbox. It would be really nice if devbox provided a devbox_rules Bazel package that looked at my devbox.lock file and made those packages available inside the bazel environment.
I think this is a really cool feature request, but I'm not too familiar with how Bazel Rules work. I can do some research, but if anyone has thoughts on how to set these up with Bazel we'd greatly appreciate the help!
aaomidi
changed the title
Create a devbox_rules for Bazel
Create a rules_devbox for Bazel
Sep 12, 2024
@Lagoja I'm currently in the process of talking to a few folks about writing something for this. I'll probably use the same license as what devbox uses, so we can think about moving it under jetify in the future?
This only supports the most basic use case of devbox, where you're just relying on a package directly from nixpkgs. Future use cases I'll build out as requests for it come my way.
What problem are you trying to solve?
When in a bazel environment, you're usually in an execution sandbox. This sandbox does not have access to the various packages on your system level path, and only packages that are specifically loaded into Bazel.
What solution would you like?
I already use devbox. It would be really nice if devbox provided a
devbox_rules
Bazel package that looked at mydevbox.lock
file and made those packages available inside the bazel environment.Alternatives you've considered
https://github.com/tweag/rules_nixpkgs
The text was updated successfully, but these errors were encountered: