2021-01-17 03:51:22 +00:00
|
|
|
{ fetchurl, lib, stdenv, gettext, perl, pkg-config, libxml2, pango, cairo, groff
|
2017-04-08 04:55:49 +01:00
|
|
|
, tcl-8_5, darwin }:
|
2009-03-25 19:13:24 +00:00
|
|
|
|
2019-04-21 19:56:09 +01:00
|
|
|
perl.pkgs.toPerlModule (stdenv.mkDerivation rec {
|
2021-08-02 10:38:45 +01:00
|
|
|
pname = "rrdtool";
|
|
|
|
version = "1.7.2";
|
2017-01-22 00:38:29 +00:00
|
|
|
|
2009-03-25 19:13:24 +00:00
|
|
|
src = fetchurl {
|
2021-08-02 10:38:45 +01:00
|
|
|
url = "https://oss.oetiker.ch/rrdtool/pub/rrdtool-${version}.tar.gz";
|
2019-06-03 03:39:23 +01:00
|
|
|
sha256 = "1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzm6d1";
|
2009-03-25 19:13:24 +00:00
|
|
|
};
|
2017-01-22 00:38:29 +00:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-02-05 18:05:49 +00:00
|
|
|
|
|
|
|
buildInputs = [ gettext perl libxml2 pango cairo groff ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ];
|
2017-01-22 00:38:29 +00:00
|
|
|
|
2014-08-31 15:53:29 +01:00
|
|
|
postInstall = ''
|
2016-02-07 16:16:30 +00:00
|
|
|
# for munin and rrdtool support
|
2018-12-15 03:50:31 +00:00
|
|
|
mkdir -p $out/${perl.libPrefix}
|
|
|
|
mv $out/lib/perl/5* $out/${perl.libPrefix}
|
2014-08-31 15:53:29 +01:00
|
|
|
'';
|
2009-03-25 19:13:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://oss.oetiker.ch/rrdtool/";
|
2009-03-25 19:13:24 +00:00
|
|
|
description = "High performance logging in Round Robin Databases";
|
2015-01-22 17:57:29 +00:00
|
|
|
license = licenses.gpl2;
|
2016-05-12 00:30:03 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2015-01-22 17:57:29 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-03-25 19:13:24 +00:00
|
|
|
};
|
2019-04-21 19:56:09 +01:00
|
|
|
})
|