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

Add examples and templates for cross compilation. #161

Merged
merged 1 commit into from Apr 19, 2021

Conversation

gcoakes
Copy link
Contributor

@gcoakes gcoakes commented Mar 25, 2021

This adds examples and templates for both Windows (mingw-w64) and static musl using flakes. A project can be initialized with nix flake init -t github:nmattia/naersk#cross-windows or similar for musl.

I can imagine the same being done for other possible cross targets (i.e.: wasm & MacOS), but for now, I just implemented the ones that were of interest to me.

@gcoakes gcoakes requested a review from nmattia as a code owner March 25, 2021 06:44
@gcoakes gcoakes force-pushed the cross-examples branch 4 times, most recently from 3eff658 to b6882a1 Compare March 26, 2021 07:47
nmattia
nmattia previously approved these changes Apr 10, 2021
Copy link
Collaborator

@nmattia nmattia left a comment

Choose a reason for hiding this comment

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

That's great, thanks a lot! Would you mind adding a sentence or two in the README about this? Otherwise I'm afraid people will never find it!

This implements very basic examples of how to configure a project to
build mingw-w64 and static musl targets.
Copy link
Collaborator

@nmattia nmattia left a comment

Choose a reason for hiding this comment

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

This is great, thanks!

@nmattia nmattia merged commit 380e143 into nix-community:master Apr 19, 2021
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

2 participants