wol: fix Darwin build with gnu17 (#519842)

This commit is contained in:
dotlambda 2026-07-03 03:28:52 +00:00 committed by GitHub
commit 0eb539e656
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