nixcfg/overlays/inetutils-darwin-fix/default.nix
2026-04-20 10:09:24 +02:00

10 lines
412 B
Nix

_:
final: prev: {
inetutils = prev.inetutils.overrideAttrs (old: {
# Fix gnulib variadic macro error on Darwin with newer Clang
# The error.h macro __gl_error_call1 has issues with __VA_ARGS__
# and -Werror,-Wformat-security causes build failures
NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -Wno-error";
hardeningDisable = (old.hardeningDisable or [ ]) ++ [ "format" ];
});
}