[Backport release-26.05] wol: fix Darwin build with gnu17 (#538255)

This commit is contained in:
dotlambda 2026-07-04 01:11:55 +00:00 committed by GitHub
commit 76c7ce9867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
./macos-10_7-getline.patch
];
env = lib.optionalAttrs stdenv.cc.isClang {
# wol's bundled gettext sources do not compile as gnu23 with clang.
NIX_CFLAGS_COMPILE = "-std=gnu17";
};
nativeBuildInputs = [
perl # for pod2man in order to get a manpage
autoreconfHook # for the patch