Skip to content

How to use nixpkgs_cc_configure with bzlmod? #446

Answered by avdv
attilaolah asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

Yes, currently we only have the core module published to the BCR. Other modules will follow, but we are not there yet. See #181

In the meantime, you can depend on rules_nixpkgs_cc in your module like this:

bazel_dep(name = "rules_nixpkgs_cc", version = "0.10.0")

archive_override(
  "rules_nixpkgs_cc",
  urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.10.0/rules_nixpkgs-0.10.0.tar.gz"],
  strip_prefix = "rules_nixpkgs-0.10.0/toolchains/cc"
)

Then, probably the easiest option is to just load nixpkgs_foreign_cc_configure in your WORKSPACE.bazel (or WORKSPACE.bzlmod) file as usual.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@attilaolah
Comment options

@attilaolah
Comment options

@attilaolah
Comment options

@attilaolah
Comment options

@avdv
Comment options

avdv Nov 15, 2023
Maintainer

Answer selected by attilaolah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants