jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.35k stars 195 forks source link

Create a `rules_devbox` for Bazel #2268

Open aaomidi opened 2 weeks ago

aaomidi commented 2 weeks ago

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 my devbox.lock file and made those packages available inside the bazel environment.

Alternatives you've considered

https://github.com/tweag/rules_nixpkgs

Lagoja commented 2 weeks ago

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 commented 2 weeks ago

@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?

Lagoja commented 2 weeks ago

Absolutely! Let me know how we can help