phpExtensions.rrd: add php 8.5 compatibility patch

This commit is contained in:
Piotr Kwiecinski
2026-01-17 21:12:35 +01:00
parent 21efaec96c
commit 1e7da2bf08
@@ -3,6 +3,7 @@
lib,
pkg-config,
rrdtool,
fetchpatch,
}:
buildPecl {
@@ -19,6 +20,14 @@ buildPecl {
pkg-config
];
patches = [
# PHP 8.5 compatibility patch
(fetchpatch {
url = "https://github.com/php/pecl-processing-rrd/pull/4/commits/dd4856dc89499a0141b1710e791f0e1096c7b244.patch";
hash = "sha256-ES+cMhMBUubFB5TpTZzzKKfEK2cY737z7zCuNy4XF8Y=";
})
];
# Fix GCC 14 build.
# from incompatible pointer type [-Wincompatible-pointer-types
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";