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

nix: fix darwin build #1521

Merged
merged 1 commit into from Dec 17, 2022
Merged

Conversation

happysalada
Copy link
Contributor

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

The flake is amazing, however it doesn't build on darwin (macos)

What does this change do?

This fixes the build for darwin platforms. tested only on x86_64 though.

What is your testing strategy?

run nix build .#packages.x86_64-darwin.default on a darwin machine and verify the output of ./result/bin/surreal version

Is this related to any issues?

If this pull request is related to any other pull request or issue, or resolves any issues - then link all related pull requests and issues here.

Have you read the Contributing Guidelines?

@happysalada
Copy link
Contributor Author

@rushmorem you might be interested in this.

@rushmorem
Copy link
Collaborator

Awesome! Thanks @happysalada. This was something on my TODO list.

@tobiemh
Copy link
Member

tobiemh commented Dec 12, 2022

Any ideas why this build is failing @rushmorem ?

@rushmorem
Copy link
Collaborator

Any ideas why this build is failing @rushmorem ?

By specifying the build inputs where they specified them, they are overriding all the build inputs from all the targets, hence it's now failing to find the FoundationDB library. Unfortunately, I noticed this after approving the PR and I couldn't figure out how to un-approve. They will need to address my comment to fix this.

@happysalada
Copy link
Contributor Author

I see, I didn't know about the specific files. @rushmorem that should do it IIUC .
Let me know if anything else.

@rushmorem
Copy link
Collaborator

I see, I didn't know about the specific files. @rushmorem that should do it IIUC . Let me know if anything else.

It's OK. This now looks good to me.

@happysalada
Copy link
Contributor Author

It s complaining that the apple framework is not available for Linux. Even though its in the Darwin file, should I add a lib.optional Darwin for those dependencies ?

@rushmorem
Copy link
Collaborator

It s complaining that the apple framework is not available for Linux. Even though its in the Darwin file, should I add a lib.optional Darwin for those dependencies ?

I think it might be cleaner to just remove the Nix lint.

@happysalada
Copy link
Contributor Author

Just removed the nix lint workflow, let me know if you had something else in mind.

@rushmorem
Copy link
Collaborator

Just removed the nix lint workflow, let me know if you had something else in mind.

Thanks @happysalada. That's exactly what I meant 👍

Would you mind removing the needs: lint lines too from the 3 jobs in the same workflow?

@happysalada
Copy link
Contributor Author

forgot to check for that :-) , done!

@rushmorem
Copy link
Collaborator

forgot to check for that :-) , done!

Thanks!

@happysalada
Copy link
Contributor Author

it looks like the workflow didn't trigger after the approval somehow.

@rushmorem
Copy link
Collaborator

it looks like the workflow didn't trigger after the approval somehow.

It's waiting for @tobiemh's approval.

@tobiemh tobiemh merged commit 407df0e into surrealdb:main Dec 17, 2022
@happysalada happysalada deleted the nix_fix_darwin_build branch December 17, 2022 15:55
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.

None yet

3 participants