wol: fix clang build with gnu17 flag

Co-authored-by: dotlambda <github@dotlambda.de>
This commit is contained in:
Bryan Lai
2026-07-03 10:38:40 +08:00
co-authored by dotlambda
parent cbb5cf358f
commit 509a095d5f
+5
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