mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
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:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user