Slides from my 35C3 cross-compile workshop

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.

10 Likes

Good summary! Well done!

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.

1 Like

It’s just Google docs, how about opening it in incognito mode where you allow JavaScript?

I understand that you want to limit js, but how do you use discourse, or your online banking?

https://github.com/NixOS/nixpkgs/pull/53065

A pullrequest to make crosscompiling Raspberry PI images possible. ( I haven’t tried it yet )

1 Like

docs :books: will export to plain text

wget "https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/txt?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY" -O 'Nix cross-compiling.txt'

or pdf

https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/pdf?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY

wget "https://docs.google.com/presentation/d/11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY/export/pdf?id=11B3Igxj0KmsxgT_UQvKufd5El_oH-T__Sl3JNCZeOnY" -O 'Nix-cross-compiling.pdf'
2 Likes