3 ms·
> to build multi-arch images, it actually wants to execute stuff as the other architecture You should be able to cross compile binaries for other architectures
by viraptor 3y ago
> to build multi-arch images, it actually wants to execute stuff as the other architecture
You should be able to cross compile binaries for other architectures without actually running them. As long as the package's build files support it of course.
> and only supports using qemu with hardware virtualization for that
That doesn't sound right. You can use qemu for architectures that be only software emulated too.
The minimal example is discussed here:
https://discourse.nixos.org/t/how-do-i-get-a-shell-nix-with-cross-compiler-and-qemu/7658 https://discourse.nixos.org/t/how-do-i-get-a-shell-nix-with-...
I don't want to say it should be as simple as using pkgCross (https://nix.dev/tutorials/cross-compilation.html https://nix.dev/tutorials/cross-compilation.html), but... are some specific issues with the usual process that you're running into?