gfxreconstruct: fix build with CMake and GCC 15

This commit is contained in:
Justin Chen
2026-01-03 12:28:32 +08:00
parent 99e594153f
commit 8a927a4dc5
@@ -28,6 +28,14 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
cmakeFlags = [
# The CMakeLists.txt is actually 3.10 compatible, but it specifies 3.5 as `CMAKE_VERSION_MINIMUM`
"-DCMAKE_POLICY_VERSION_MINIMUM=3.10"
];
# Workaround for "error: ... class std::__cxx11::wstring_convert' is deprecated [-Werror=deprecated-declarations]"
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
buildInputs = [
libX11
libxcb