Re:Emu68: M68K Emulation for ARM
by siraben on Monday August 09, 2021 @12:50PM
(#28119194)
Nixpkgs recently added support for cross-compilation to M68K[0], so if you want to cross-compile programs to run on this emulator such as GNU Hello, for instance, run
nix-build '<nixpkgs>' -A pkgsCross.m68k.hello
You may have to update your Nixpkgs channel for this to work. For larger packages it'll handle cross-compilation of dependencies and linking. See [1].
[0] https://github.com/NixOS/nixpkgs/pull/131310
[1] https://nix.dev/tutorials/cross-compilation