diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index f06e5471ebe14..647c24e9c6443 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -148,11 +148,6 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ perl xz.bin - ] - ++ optionals stdenv.hostPlatform.isCygwin [ - # due to patch - autoreconfHook - texinfo ]; buildInputs = @@ -222,7 +217,8 @@ stdenv.mkDerivation rec { ++ optional stdenv.hostPlatform.isAndroid "-D__USE_FORTIFY_LEVEL=0" # gnulib does not consider Clang-specific warnings to be bugs: # https://lists.gnu.org/r/bug-gnulib/2025-06/msg00325.html - ++ optional stdenv.cc.isClang "-Wno-error=format-security" + # TODO: find out why these are happening on cygwin, which is gcc + ++ optional (stdenv.cc.isClang || stdenv.hostPlatform.isCygwin) "-Wno-error=format-security" ); # Works around a bug with 8.26: