ploticus: fix build by using C17 (#516789)

This commit is contained in:
Michael Daniels
2026-05-16 18:15:36 +00:00
committed by GitHub
+5
View File
@@ -40,6 +40,11 @@ stdenv.mkDerivation (finalAttrs: {
./fix-zlib-file-type.patch
];
# GCC 15 uses C23, which fails with the following error
# plg.h:283:8: error: conflicting types for 'atof'; have 'double(void)'
# 283 | double atof(), sqrt(), log();
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
buildInputs = [
zlib
libx11