How to use nixpkgs_cc_configure with bzlmod? #446
-
I'm using the bazel_dep(name = "rules_nixpkgs_core", version = "0.10.0")
nix_repo = use_extension("@rules_nixpkgs_core//extensions:repository.bzl", "nix_repo")
nix_repo.github(
name = "nixpkgs",
sha256 = "f2b96094f6dfbb53b082fe8709da94137475fcfead16c960f2395c98fc014b68",
tag = "23.05",
)
use_repo(nix_repo, "nixpkgs")
nix_pkg = use_extension("@rules_nixpkgs_core//extensions:package.bzl", "nix_pkg")
NIX_DEPS = {
"nasm": "nasm",
"yasm": "yasm",
"python": "python3",
}
[
nix_pkg.attr(
attr = pkg_name,
build_file = "//nix:{}.build".format(repo),
)
for repo, pkg_name in NIX_DEPS.items()
]
use_repo(
nix_pkg,
**NIX_DEPS
) Now the next step would be to configure a CC toolchain. I see
I tried to import it by depending on the Ultimately, I'd like to use the underlying CC toolchain with Any pointers would be highly appreciated. If there is help needed I might have the cycles to contribute, although I only found out about this repo very recently, I'm still very new here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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
Then, probably the easiest option is to just load |
Beta Was this translation helpful? Give feedback.
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:Then, probably the easiest option is to just load
nixpkgs_foreign_cc_configure
in yourWORKSPACE.bazel
(orWORKSPACE.bzlmod
) file as usual.