[staging-next] libctemplate: fix build with gcc 16 (#566394)

This commit is contained in:
Arne Keller
2026-09-24 15:24:10 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
python3,
autoconf,
automake,
@@ -19,6 +20,17 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr";
};
patches = [
# C++20 (the default with GCC 16) removed the
# std::allocated::<T>::const_pointer typedef which ctemplate used. It was
# ignored anyway, so we fetch the patch which removes this unused hint.
(fetchpatch {
name = "c++20-std-allocator-const-pointer-typedef.patch";
url = "https://github.com/OlafvdSpek/ctemplate/commit/5aa5a00e74ea8a1ea22d6a9760b4b420687fa4e5.patch";
hash = "sha256-Yqp7MOOdH/W09OQ2JkyAlert1UMoA/GS+6PT9WKVVEo=";
})
];
nativeBuildInputs = [
python3
autoconf