diff --git a/pkgs/by-name/kt/ktx-tools/package.nix b/pkgs/by-name/kt/ktx-tools/package.nix index b3bc46692173..f6f686875c23 100644 --- a/pkgs/by-name/kt/ktx-tools/package.nix +++ b/pkgs/by-name/kt/ktx-tools/package.nix @@ -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 .