diff options
Diffstat (limited to 'pkgs/tools/misc/kcollectd/default.nix')
-rw-r--r-- | pkgs/tools/misc/kcollectd/default.nix | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/pkgs/tools/misc/kcollectd/default.nix b/pkgs/tools/misc/kcollectd/default.nix index c46fdcd74ec4b..86fb2628866d8 100644 --- a/pkgs/tools/misc/kcollectd/default.nix +++ b/pkgs/tools/misc/kcollectd/default.nix @@ -1,19 +1,20 @@ -{ lib -, fetchFromGitLab -, mkDerivation -, qtbase -, cmake -, kconfig -, kio -, kiconthemes -, kxmlgui -, ki18n -, kguiaddons -, extra-cmake-modules -, boost -, shared-mime-info -, rrdtool -, breeze-icons +{ + lib, + fetchFromGitLab, + mkDerivation, + qtbase, + cmake, + kconfig, + kio, + kiconthemes, + kxmlgui, + ki18n, + kguiaddons, + extra-cmake-modules, + boost, + shared-mime-info, + rrdtool, + breeze-icons, }: mkDerivation rec { @@ -23,9 +24,13 @@ mkDerivation rec { owner = "aerusso"; repo = pname; rev = "v${version}"; - sha256 = "sha256-bUVL5eRQ5UkSZo562pnyEcj0fVoSC5WHRq4BfN67jEM="; + 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 |