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