-
Notifications
You must be signed in to change notification settings - Fork 162
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
cross compile backend from x86_64 to aarch64-multiplatform #718
Comments
I think you'll need to add aarch64-platform to the attrset here: https://github.com/reflex-frp/reflex-platform/blob/develop/default.nix#L121-L163 then make a ghcLinuxAarch64 package set. You can then build your binary with |
Thanks for you quick response. I'll try that. |
I'm using the reflex-project-skeleton to test this. After some changes on the reflex-platform/default.nix I got this:
I must be missing adding the ghcLinuxAarch64 in some place. I edited the reflex-platform/default.nix in 3 places:
|
Oh. My bad. On the nixpkgsCross I should have done this:
and then on the reflex-platform project file should have added one more shell:
|
Wait a second @matthewbauer . I don't want to create a shell for ghcLinuxAarch64. Why can't I compile to raspberry pi like I compile to android without creating a specific shell? This is what I get if I remove
|
We recently added some aarch64 support here: 1.2.0.0 |
Hey. I'm new to nix and reflex-platform. I'm trying to get a reflex-platform project to run on my raspberry pi. I've already managed to cross compile a cabal project to
aarch64-multiplatform
with this:However I don't know how to do the same on a reflex-platform project like this:
I'm a bit lost, so any pointers would really help.
Edit 1: Just to be clear I just want to produce a backend executable that runs on
aarch64-platform
so that I can run the server on a raspberry pi instead of my development machine.The text was updated successfully, but these errors were encountered: