I just cross-compiled a whole #NixOS installation with zero build errors. That's wild.

Also, it's running on an old #Ouya console. 🔥

@kosinus It's magical, isn't it? 😀 Did you use the pkgsCross thing or boot.binfmt.emulatedSystems?
@nobodyinperson I set nixpkgs.hostPlatform in the configuration, which I assume is the same as pkgsCross.
@kosinus Oh wow and I automatically cross-compiles, then? 🤨 Now I wonder why I was jumping through more hoops...
@nobodyinperson You also have to set nixpkgs.buildPlatform = builtins.currentSystem, but with those two, it should cross compile, yes. (buildPlatform defaults to hostPlatform.)
@kosinus I wonder if there's a performance difference between cross compilation and emulation of the target system for compilation. 🤔

@nobodyinperson During the build or at runtime?

It's a large build as it is, so I expect running the compiler emulated will take ages more. I believe some paths are hardware optimized, like translating x86_64 -> aarch64 on Apple hardware using Rosetta 2, and that could work reasonably well. But otherwise, I expect it to be very slow.

But I assume runtime is fine?