@@ -31,7 +31,7 @@ stdenv.mkDerivation (rec {
3131
3232 patches = optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
3333 # included on coreutils master; TODO: apply unconditionally, I guess
34− ++ optional stdenv.hostPlatform.isAarch64 ./sys-getdents-undeclared.patch
34+ ++ optional (with stdenv.hostPlatform; isAarch64 || isRiscV) ./sys-getdents-undeclared.patch
3535 # fix gnulib tests on 32-bit ARM. Included on coreutils master.
3636 # https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
3737 ++ optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;