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