gnugrep: Fix MinGW Build

This commit is contained in:
hellodword 2025-07-01 06:30:54 +00:00
parent 048245e16d
commit fcecbfc9bf
No known key found for this signature in database
GPG Key ID: 094D44EBA7DBAE80

View File

@ -84,6 +84,10 @@ stdenv.mkDerivation {
chmod +x $out/bin/egrep $out/bin/fgrep
'';
env = lib.optionalAttrs stdenv.hostPlatform.isMinGW {
NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
};
meta = with lib; {
homepage = "https://www.gnu.org/software/grep/";
description = "GNU implementation of the Unix grep command";