about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/klibc
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-09-06 00:51:51 +0200
committerAstro <astro@spaceboyz.net>2022-09-06 00:51:51 +0200
commit694fc2fffee8a96b473c530d76e06369d6dded1e (patch)
tree79ad9fdeaf50681f807e17802e23077b13aa99d0 /pkgs/os-specific/linux/klibc
parent29483a4b5ee9287597d87722cdb9624dcbf022f7 (diff)
klibc: fix KLIBCARCH=riscv64
Diffstat (limited to 'pkgs/os-specific/linux/klibc')
-rw-r--r--pkgs/os-specific/linux/klibc/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/klibc/default.nix b/pkgs/os-specific/linux/klibc/default.nix
index 6efcb01cc531c..47cf03a3a87fb 100644
--- a/pkgs/os-specific/linux/klibc/default.nix
+++ b/pkgs/os-specific/linux/klibc/default.nix
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
   hardeningDisable = [ "format" "stackprotector" ];
 
   makeFlags = commonMakeFlags ++ [
-    "KLIBCARCH=${stdenv.hostPlatform.linuxArch}"
+    "KLIBCARCH=${if stdenv.hostPlatform.isRiscV64 then "riscv64" else stdenv.hostPlatform.linuxArch}"
     "KLIBCKERNELSRC=${linuxHeaders}"
   ] # TODO(@Ericson2314): We now can get the ABI from
     # `stdenv.hostPlatform.parsed.abi`, is this still a good idea?