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

Create a rules_devbox for Bazel #2268

Open
aaomidi opened this issue Sep 12, 2024 · 4 comments
Open

Create a rules_devbox for Bazel #2268

aaomidi opened this issue Sep 12, 2024 · 4 comments
Labels
feature New feature or request help wanted Extra attention is needed triage Issue needs triage

Comments

@aaomidi
Copy link

aaomidi commented Sep 12, 2024

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

@aaomidi aaomidi added feature New feature or request triage Issue needs triage labels Sep 12, 2024
@Lagoja Lagoja added the help wanted Extra attention is needed label Sep 12, 2024
@Lagoja
Copy link
Contributor

Lagoja commented Sep 12, 2024

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 aaomidi changed the title Create a devbox_rules for Bazel Create a rules_devbox for Bazel Sep 12, 2024
@aaomidi
Copy link
Author

aaomidi commented Sep 13, 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?

@Lagoja
Copy link
Contributor

Lagoja commented Sep 13, 2024

Absolutely! Let me know how we can help

@aaomidi
Copy link
Author

aaomidi commented Oct 5, 2024

A proof of concept is now available here: https://github.com/aaomidi/rules_devbox.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed triage Issue needs triage
Development

No branches or pull requests

2 participants