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