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

pcb2gcode: fix build on darwin #226929

Merged
merged 1 commit into from
Apr 20, 2023
Merged

pcb2gcode: fix build on darwin #226929

merged 1 commit into from
Apr 20, 2023

Conversation

cransom
Copy link
Contributor

@cransom cransom commented Apr 18, 2023

This version bumps gerbv as well.

Description of changes

Version bumps and changes the source for a dependency, gerbv, to sourceforge which seems to be the official download spot.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package labels Apr 18, 2023
@ofborg ofborg bot requested review from Kritnich and mogorman April 18, 2023 21:29
Comment on lines 27 to 29
CFLAGS = [
"-Wno-format-security"
];
Copy link
Member

Choose a reason for hiding this comment

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

Does the following work for you?

Suggested change
CFLAGS = [
"-Wno-format-security"
];
env.NIX_CFLAGS_COMPILE = "-Wno-format-security";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, works for me. Out of curiosity, I did some digging and I see discussion on about phasing out NIX_CFLAGS_COMPILE. Is there a source on where I can learn about the nuance between them?

Copy link
Member

Choose a reason for hiding this comment

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

I consider env.NIX_CFLAGS_COMPILE to be more uniform. Other environmental variables could of course work here or there.

This version bumps gerbv as well.
@cransom
Copy link
Contributor Author

cransom commented Apr 20, 2023

@wegank Updated. Thanks for looking!

@wegank wegank merged commit 17148b8 into NixOS:master Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants