How do I cross-compile a flake?

I think it’ll be helpful to link here another solution from this forum I found simpler and helpful for my purpose:

Basically, it instructs to use pkgs.pkgsCross.<targetSystem>.callPackage which gives you the power of nixpkgs’ cross compilation override system, along with the familiar and comfortable also for flakes interface of an expression file to which you callPackage.

6 Likes