haskell.nix
haskell.nix copied to clipboard
Support targeting linux-aarch64 from darwin with qemu-system
QEMU does not support user mode emulation on macOS, so the trick in https://github.com/input-output-hk/haskell.nix/blob/eb7e669d63c8a83a85ca38e7af1f8a545ffe17f3/overlays/linux-cross.nix won't work. However, it does support full system emulation. So why not take the emulated iserv madness to its logical conclusion and use system emulation to enable darwin-to-linux x86_64-to-aarch64 cross builds?
The beauty of user-mode emulation is that we can use the file system transparently. Fundamentally full system emulation would be fun to do. It just lacks someone to implement it, and ensure that filesystem, ... is all mapped properly across.
The issue with TH is that you have process and filesystem access, so if you have a transparent file system, process (e.g. git) would likely work.
There is also noah
which would be more akin to wine
on darwin, but instead for windows, for linux. Transparently executing ELF.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.