-
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
Modularize rules_nixpkgs #181
Labels
Comments
This was referenced Jan 28, 2022
This was referenced Mar 10, 2022
fricklerhandwerk
added a commit
that referenced
this issue
Mar 16, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 17, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 17, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 17, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 21, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 21, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 22, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Mar 24, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
fricklerhandwerk
added a commit
that referenced
this issue
Apr 1, 2022
ideally we would already operate within `bzlmod` here, but we do not even have all dependencies present in [BCR][bcr] as of today. it is another can of worms detailed in [#181][181]. here we just isolate `rules_nixpkgs_core` as a proper self-contained repository as far as possible. [bcr]: https://github.com/bazelbuild/bazel-central-registry/tree/92bb87fc41d549a47297af67c4135111308b7b03 [181]: #181
Merged
This was referenced Feb 7, 2023
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Bazel 5.0 introduces a new dependency management system called "bzlmod", introduced in this talk. In that system, Bazel modules need to define metadata about themselves and their dependencies in a
MODULE.bazel
file and be registered in the Bazel Central Registry.With Bazel 6, bzlmod became generally available (needs to be enabled with
--enable_bzlmod
). In Bazel version 5.0 it is introduced as an experimental feature.As of now,
rules_nixpkgs
is not compatible with this new module system.Describe the solution you'd like
rules_nixpkgs
should first be split into separate components for the separate language integrations.See Split rules_nixpkgs into separate components #182 for rational and details.
MODULE.bazel
file.Refer to "Modularize" rules_sh rules_sh#18 for an example.
rules_nixpkgs
need to be made compatible with and exposed as module extensions.See Create module extensions #183 for rational and details.
bzlmod
.Use a local registry or
local_path_override
to depend on the modules of rules_nixpkgs and ensure the example builds on CI (for each toolchain)It should capture the multiple components and the BCR registration process (see Publish to BCR).
Ideally, also provide some tooling to automate the process. E.g. as done in the
bazel-contrib/rules-template
.Refer to Add rules_sh 0.2.0 bazelbuild/bazel-central-registry#38 as an example.
This depends on Bzlmod: stardoc is broken by repo mappings bazelbuild/bazel#14140
Tasks
data
attribute tonixpkgs_package
#18Additional context
The rule author SIG has a discussion about bzlmod here.
The following blog posts may be useful resources for this work:
The text was updated successfully, but these errors were encountered: