From 04d6c15afe26b46bfaffd2a619c39494a8aacbea Mon Sep 17 00:00:00 2001 From: misuzu Date: Sun, 27 Apr 2025 13:41:26 +0300 Subject: [PATCH] diffutils: fix cross https://lists.gnu.org/archive/html/bug-diffutils/2025-04/msg00004.html --- pkgs/tools/text/diffutils/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/diffutils/default.nix b/pkgs/tools/text/diffutils/default.nix index d62684b2569c..2d2d34b698b5 100644 --- a/pkgs/tools/text/diffutils/default.nix +++ b/pkgs/tools/text/diffutils/default.nix @@ -51,7 +51,10 @@ stdenv.mkDerivation rec { # "pr" need not be on the PATH as a run-time dep, so we need to tell # configure where it is. Covers the cross and native case alike. lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr" - ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes"; + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + "gl_cv_func_getopt_gnu=yes" + "gl_cv_func_strcasecmp_works=yes" + ]; # Test failure on QEMU only (#300550) doCheck = !stdenv.buildPlatform.isRiscV64;