In case someone is interested, these are my slides from the cross-compiling workshop on the 35th chaos communication congress in Leipzig: Nix cross-compiling - Google Präsentationen
Unfortunally the recording broke. If someone wants to have the same talk on their NixOS meetup, I would be happy to give my talk again to get a proper video.
That was great, I learned a lot. Som hypothetically, if you have a buildInput that has a host component and a build component, it should be split in two different packages?
@wmertens Usually you would refer to the from build component to the library that is meant for the target.
You then call the other component target library instead of host library.
I.e. gcc from buildPackage has a dependency on libgcc that is compiled for the target. This is because
gcc could be cross-compiled from architecture A to architecture B but it actually produces code for the architecture C. libgcc also then needs to be compiled for the target, which is architecture C instead of architecture B, which gcc can run on.