From 8a927a4dc50bbd61a30a79890e403b21ac79d30f Mon Sep 17 00:00:00 2001 From: Justin Chen <42143810+StarryReverie@users.noreply.github.com> Date: Sat, 3 Jan 2026 12:28:32 +0800 Subject: [PATCH] gfxreconstruct: fix build with CMake and GCC 15 --- pkgs/by-name/gf/gfxreconstruct/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/gf/gfxreconstruct/package.nix b/pkgs/by-name/gf/gfxreconstruct/package.nix index 18b0fbc2b54c..b04642602e79 100644 --- a/pkgs/by-name/gf/gfxreconstruct/package.nix +++ b/pkgs/by-name/gf/gfxreconstruct/package.nix @@ -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