Skip to content

nixDependencies: use override only#439943

Merged
roberth merged 6 commits intoNixOS:masterfrom
philiptaron:boehmgc-better
Sep 6, 2025
Merged

nixDependencies: use override only#439943
roberth merged 6 commits intoNixOS:masterfrom
philiptaron:boehmgc-better

Conversation

@philiptaron
Copy link
Contributor

As reported in #437584 (comment), setting NIX_CFLAGS_COMPILE in an overrideAttrs has consequences which can cause the derivation to fail to evaluate on some systems.

See #421201 for more commentary on avoiding overrideAttrs in Nixpkgs.

What this PR does is introduce override flags to boehmgc and aws-sdk-cpp for the desired customizations. In boehmgc, rather than using the NIX_CFLAGS_COMPILE brutal instrument, we use the existing CFLAGS_EXTRA Makefile option.

I also noticed that the boehmgc master repository has been moved (no hash changes) so that's updated as well.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. labels Sep 3, 2025
@piegamesde piegamesde removed their request for review September 4, 2025 05:35
@caffineehacker
Copy link
Contributor

caffineehacker commented Sep 4, 2025

Just tested this with my config: eval and build succeeded. Without this change eval fails due to the NIX_CFLAGS_COMPILE conflict with env.NIX_CFLAGS_COMPILE.

Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

Great work!

@roberth roberth merged commit c773622 into NixOS:master Sep 6, 2025
31 of 33 checks passed
@philiptaron philiptaron deleted the boehmgc-better branch September 6, 2025 13:34
@philiptaron philiptaron mentioned this pull request Sep 11, 2025
13 tasks
philiptaron added a commit to philiptaron/nixpkgs that referenced this pull request Sep 11, 2025
This resolves the issue reported in NixOS#439943 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants