ktx-tools: fix build with GCC 16

GCC 16 defaults to gnu++20, which 4.4.2's fmt usage does not compile
under. Pin C++17 until 5.0.0 is released. See
https://github.com/KhronosGroup/KTX-Software/issues/1172.

Assisted-by: Claude Code (Claude Opus 5.5)
This commit is contained in:
Michael Bryniarski
2026-09-30 20:06:24 -07:00
parent a04263973d
commit 9157ca6c0d

View File

@@ -29,7 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [ "-DKTX_FEATURE_DOC=ON" ];
cmakeFlags = [
"-DKTX_FEATURE_DOC=ON"
# 4.4.x does not build with GCC 16's default of gnu++20; fixed upstream in 5.0.0
# https://github.com/KhronosGroup/KTX-Software/issues/1172
(lib.cmakeFeature "CMAKE_CXX_STANDARD" "17")
];
postPatch = ''
patchShebangs .