2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, gettext
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, pango
|
|
|
|
, cairo
|
|
|
|
, groff
|
|
|
|
, tcl
|
|
|
|
, darwin
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
perl.pkgs.toPerlModule (stdenv.mkDerivation rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "rrdtool";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oetiker";
|
|
|
|
repo = "rrdtool-1.x";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-a+AxU1+YpkGoFs1Iu/CHAEZ4XIkWs7Vsnr6RcfXzsBE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ gettext perl libxml2 pango cairo groff ]
|
2023-07-15 17:15:38 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ tcl darwin.apple_sdk.frameworks.ApplicationServices ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# for munin and rrdtool support
|
|
|
|
mkdir -p $out/${perl.libPrefix}
|
|
|
|
mv $out/lib/perl/5* $out/${perl.libPrefix}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://oss.oetiker.ch/rrdtool/";
|
|
|
|
description = "High performance logging in Round Robin Databases";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2021-04-12 18:23:04 +00:00
|
|
|
})
|