-
Notifications
You must be signed in to change notification settings - Fork 83
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
Future direction of rules_nixpkgs regarding nix flakes #348
Comments
The current approach I'm attempting to use is having a Flake at the nix_flake_package(
name = "nix_rust",
nix_flake_file = "//:flake.nix",
nix_flake_lock_file = "//:flake.lock",
package = "bazel.rust",
) This expand to Rough docs:
If this approach/API seems reasonable, I'd be happy to put up a PR 🙂 |
Hi @rickvanprim, thanks for taking an interest in this issue and sorry for the delayed reply. While I expect we'll need a lot more thought and discussion on this topic before we settle on a complete solution, this seems like a reasonable first step towards making flake packages available to Bazel. If you already have a change that implements this it would be great to see a PR so we can discuss the details. One thing to consider — rules_nixpkgs is currently undergoing a large refactor to support bzlmod, so we should try not to regress that effort in the process of supporting flake packages. Any thoughts on this proposal @aherrmann and @layus? |
💯 Exactly, it makes sense to move forward in incremental steps on this. So long as the code makes it clear that the API isn't stable, yet, we can keep iterating on it.
This approach seems to fit well with the |
Is your feature request related to a problem? Please describe.
With the Nix ecosystem moving towards flakes we should start thinking about what this means for rules_nixpkgs. Flakes are still experimental in Nix and will need to stabilise before we can fully commit to an approach, but starting the discussion now and exploring ideas will help us prepare.
Some things to think about:
Discussions on the subject:
The text was updated successfully, but these errors were encountered: