kcollectd: fix build with rrdtool >= 1.9.0

This commit is contained in:
Franz Pletz
2024-08-06 16:08:36 +02:00
parent 06b5913157
commit 1f21ddd4a5
+4
View File
@@ -26,6 +26,10 @@ mkDerivation rec {
hash = "sha256-bUVL5eRQ5UkSZo562pnyEcj0fVoSC5WHRq4BfN67jEM=";
};
postPatch = lib.optional (!lib.versionOlder rrdtool.version "1.9.0") ''
substituteInPlace kcollectd/rrd_interface.cc --replace-fail 'char *arg[] =' 'const char *arg[] ='
'';
nativeBuildInputs = [
cmake
extra-cmake-modules