golly: fix build with GCC 16 (#569210)

This commit is contained in:
7c6f434c
2026-10-02 04:11:13 +00:00
committed by GitHub

View File

@@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
substituteInPlace wxprefs.cpp \
--replace-fail 'PYTHON_SHLIB' '${python3}/lib/libpython3.so'
substituteInPlace ../cmdline/bgolly.cpp \
--replace-fail '&popcount' '&::popcount' \
--replace-fail 'if (popcount)' 'if (::popcount)'
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace makefile-gtk \