-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update the rules_nixpkgs guide #554
Conversation
echo "-L${pkgs.libiconv}/lib" >> $out/nix-support/cc-cflags | ||
echo "-L${pkgs.darwin.libobjc}/lib" >> $out/nix-support/cc-cflags | ||
echo "-resource-dir=${pkgs.stdenv.cc}/resource-root" >> $out/nix-support/cc-cflags | ||
'' + pkgs.lib.optionalString (builtins.hasAttr "libcxxabi" pkgs.llvmPackages) '' | ||
echo "-L${pkgs.llvmPackages.libcxxabi}/lib" >> $out/nix-support/cc-cflags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes #543
771bc17
to
01aee9c
Compare
Bazel introduced the option `darwin_x86_64`.
The CI failures on MacOS were an instance bazelbuild/rules_cc#226. The logic to generate the toolchain constraints needed to be updated to capture the value For reference, the failure looked like this:
|
To use a more recent nixpkgs revision, Bazel 7, and more recent rules_cc.