···136136 else if final.isPower then "powerpc"
137137 else if final.isRiscV then "riscv"
138138 else if final.isS390 then "s390"
139139+ else if final.isLoongArch64 then "loongarch"
139140 else final.parsed.cpu.name;
140141141142 qemuArch =
···8888 else if targetPlatform.isMips then "${sharedLibraryLoader}/lib/ld.so.1"
8989 # `ld-linux-riscv{32,64}-<abi>.so.1`
9090 else if targetPlatform.isRiscV then "${sharedLibraryLoader}/lib/ld-linux-riscv*.so.1"
9191+ else if targetPlatform.isLoongArch64 then "${sharedLibraryLoader}/lib/ld-linux-loongarch*.so.1"
9192 else if targetPlatform.isDarwin then "/usr/lib/dyld"
9293 else if targetPlatform.isFreeBSD then "/libexec/ld-elf.so.1"
9394 else if lib.hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"