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

Is there a way to use the included linux-builder to build x86_64-linux using the rosetta? #1091

Open
onnimonni opened this issue Sep 24, 2024 · 1 comment

Comments

@onnimonni
Copy link

I learned in the nixos forums that the typical way to build x86_64-linux targets is to use UTM virtual machine and using virtualisation.rosetta.enable which then allows to use the rosetta binaries in the vm.

Can this same setup be achieved directly in the included linux builder nix.linux-builder.enable = true; so that I could build x86_64-linux targets from a apple silicon host?

Is there anything else better than the UTM vm?

@Enzime
Copy link
Collaborator

Enzime commented Oct 17, 2024

I believe nix.linux-builder.package = pkgs.linux-builder-x86_64; should work

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

No branches or pull requests

2 participants