Haskell development on aarch64

How do people typically do haskell builds for aarch64 devices (raspberry pi in particular)?

Do they build on the pi or cross compile in some way?

If you cross compile, how do you actually build it?

I’m trying variations of:

nix-build --arg crossSystem ‘{config = “aarch64-unknown-linux-gnu”;}’ -A mypackage

but I just get my regular package built.

I have not had much luck cross-compiling. That part of the ecosystem is still in flux. Instead I have some ARM devices as build slaves connected to my Hydra instance.

If someone has a good setup, please add that documentation to the manual.

1 Like