summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-18 00:13:17 -0500
committerShea Levy <shea@shealevy.com>2018-02-18 00:13:17 -0500
commit4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93 (patch)
treea1b62456278e94fef1ce811262ed3acc68108df8
parent1d493f6171e9a84a3ff7c77745230a7c3910217e (diff)
downloadnixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar.gz
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar.bz2
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar.lz
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar.xz
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.tar.zst
nixlib-4f8a9ff1ac4e9b671a732f8a6e4044551f51cc93.zip
Use glibc-2.27 for RISC-V support.
-rw-r--r--pkgs/top-level/all-packages.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cf8d8d6d5e99..57bc0ec071d2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8763,7 +8763,11 @@ with pkgs;
   };
 
   # Being redundant to avoid cycles on boot. TODO: find a better way
-  glibcCross = callPackage ../development/libraries/glibc {
+  glibcCross = let
+    expr = if hostPlatform.isRiscV
+             then ../development/libraries/glibc/2.27.nix
+           else ../development/libraries/glibc;
+  in callPackage expr {
     installLocales = config.glibc.locales or false;
     stdenv = crossLibcStdenv;
   };