Unverified Commit 1f21ddd4 authored by Franz Pletz's avatar Franz Pletz
Browse files

kcollectd: fix build with rrdtool >= 1.9.0

parent 06b59131
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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