···2525 hardeningDisable = [ "format" "stackprotector" ];
26262727 makeFlags = commonMakeFlags ++ [
2828- "KLIBCARCH=${stdenv.hostPlatform.linuxArch}"
2828+ "KLIBCARCH=${if stdenv.hostPlatform.isRiscV64 then "riscv64" else stdenv.hostPlatform.linuxArch}"
2929 "KLIBCKERNELSRC=${linuxHeaders}"
3030 ] # TODO(@Ericson2314): We now can get the ABI from
3131 # `stdenv.hostPlatform.parsed.abi`, is this still a good idea?