How do I get a shell.nix with cross compiler and qemu?

Got it after trying a bit: qemu is something ‘completely native’ and needs an additional buildPackages step:

  nativeBuildInputs = [
    buildPackages.buildPackages.qemu
    buildPackages.gdb
  ];