gnugrep: fix cygwin build

This commit is contained in:
David McFarland
2025-09-12 15:16:07 -03:00
parent 8a3548925c
commit fa418d26fc

View File

@@ -79,6 +79,11 @@ stdenv.mkDerivation {
export MKDIR_P="mkdir -p"
'';
configureFlags =
# Work around build failure caused by the gnulib workaround for
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870. remove after GCC 15
lib.optional stdenv.hostPlatform.isCygwin "gl_cv_clean_version_stddef=yes";
enableParallelBuilding = true;
# Fix reference to sh in bootstrap-tools, and invoke grep via
@@ -92,7 +97,7 @@ stdenv.mkDerivation {
chmod +x $out/bin/egrep $out/bin/fgrep
'';
env = lib.optionalAttrs stdenv.hostPlatform.isMinGW {
env = lib.optionalAttrs (stdenv.hostPlatform.isMinGW || stdenv.hostPlatform.isCygwin) {
NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
};