about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-01-26 12:07:54 +0100
committerGitHub <noreply@github.com>2021-01-26 12:07:54 +0100
commit2d559b6128bccb57d6baac3fa83d6b428413bfe5 (patch)
treec5aae288ad550746f4c2becfcc87aefbf6ee045f /pkgs
parent117addb0f8387072dbb287a75846c97f0589a90c (diff)
parentbcece861e80203308b0eaee1a7711589348d1a6f (diff)
Merge pull request #110829 from r-burns/riscv-coreutils
coreutils: fix build on riscv
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/coreutils/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix
index 4a4a9343c6a87..d30a4d00ba1a1 100644
--- a/pkgs/tools/misc/coreutils/default.nix
+++ b/pkgs/tools/misc/coreutils/default.nix
@@ -31,7 +31,7 @@ stdenv.mkDerivation (rec {
 
   patches = optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
     # included on coreutils master; TODO: apply unconditionally, I guess
-    ++ optional stdenv.hostPlatform.isAarch64 ./sys-getdents-undeclared.patch
+    ++ optional (with stdenv.hostPlatform; isAarch64 || isRiscV) ./sys-getdents-undeclared.patch
     # fix gnulib tests on 32-bit ARM. Included on coreutils master.
     # https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
     ++ optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;