Skip to content
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

Use nix-support/cc-{c,ld}flags files to configure compiler flags #227

Merged
merged 6 commits into from
May 19, 2022

Conversation

avdv
Copy link
Member

@avdv avdv commented May 17, 2022

Purpose

This improves support for using rules_nixpkgs on Darwin where it is required to sign binaries.

Fixes #225 and fixes #224.

@avdv avdv force-pushed the nix-support-and-code-signing branch 3 times, most recently from 8a5c789 to 665950c Compare May 17, 2022 11:57
@avdv avdv force-pushed the nix-support-and-code-signing branch from 665950c to 5aa0b34 Compare May 17, 2022 12:01
toolchains/cc/cc.nix Outdated Show resolved Hide resolved
The `bintools` attribute of a compiler derivation contains the corresponding
binutils or cctools.

Add some documentation and example code to explain how to use
`nixpkgs_cc_configure`.
@avdv avdv force-pushed the nix-support-and-code-signing branch from b729eea to 4a02190 Compare May 18, 2022 19:49
toolchains/cc/cc.nix Outdated Show resolved Hide resolved
toolchains/cc/cc.nix Outdated Show resolved Hide resolved
aherrmann and others added 2 commits May 19, 2022 10:46
This is necessary because the original `postLinkSignHook` assumes the `codesign_allocate` is in
`PATH`.
Copy link
Member

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for porting this over and getting it in shape! Assuming this also works on M1, I think it's good to merge!

@avdv
Copy link
Member Author

avdv commented May 19, 2022

Assuming this also works on M1, I think it's good to merge!

Yes, it does. Thank you!

@avdv avdv added the merge-queue merge on green CI label May 19, 2022
@mergify mergify bot merged commit 4ebcf6f into master May 19, 2022
@mergify mergify bot deleted the nix-support-and-code-signing branch May 19, 2022 11:42
@mergify mergify bot removed the merge-queue merge on green CI label May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the nix-support/cc-flags file to configure compiler flags Support codesigning on MacOs
2 participants