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

teeworlds: fix build on Darwin #270905

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

Luflosi
Copy link
Contributor

@Luflosi Luflosi commented Nov 29, 2023

Description of changes

Fix build on Darwin.
Also fix unbundling of the wavpack dependency when building teeworlds-server.

ZHF #265948

cc @jtbx

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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.11 Release Notes (or backporting 23.05 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.

Priorities

Add a 👍 reaction to pull requests you find important.

The Cocoa dependency is also needed when not building the Client.
The Carbon dependency does not seem to be needed at all.
The libGLU dependency does not currently build on macOS because of one of its transitive dependencies but teeworlds compiles and runs fine without libGLU on macOS, so just make this dependency Linux-only.
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Nov 29, 2023
@ofborg ofborg bot requested a review from astsmtl November 29, 2023 14:09
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Nov 29, 2023
@@ -45,17 +52,16 @@ stdenv.mkDerivation rec {

buildInputs = [
python3 lua5_3 zlib
wavpack
] ++ lib.optionals stdenv.isDarwin [
Cocoa
Copy link
Member

@jtbx jtbx Nov 29, 2023

Choose a reason for hiding this comment

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

If this dependency isn't needed for the server it should be put in the lib.optionals buildClient list.

edit: did not read the commit message, looks good

@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 29, 2023
@wegank
Copy link
Member

wegank commented Nov 29, 2023

Result of nixpkgs-review pr 270905 run on aarch64-darwin 1

2 packages built:
  • teeworlds
  • teeworlds-server

@wegank wegank merged commit b26d582 into NixOS:master Nov 29, 2023
15 checks passed
@Luflosi Luflosi deleted the fix-teeworlds-on-darwin branch November 29, 2023 23:09
Copy link
Contributor

Successfully created backport PR for release-23.11:

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 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants