lol
1{ fetchurl, lib, stdenv, gettext, perl, pkg-config, libxml2, pango, cairo, groff
2, tcl-8_5, darwin }:
3
4perl.pkgs.toPerlModule (stdenv.mkDerivation rec {
5 pname = "rrdtool";
6 version = "1.7.2";
7
8 src = fetchurl {
9 url = "https://oss.oetiker.ch/rrdtool/pub/rrdtool-${version}.tar.gz";
10 sha256 = "1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzm6d1";
11 };
12
13 nativeBuildInputs = [ pkg-config ];
14
15 buildInputs = [ gettext perl libxml2 pango cairo groff ]
16 ++ lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ];
17
18 postInstall = ''
19 # for munin and rrdtool support
20 mkdir -p $out/${perl.libPrefix}
21 mv $out/lib/perl/5* $out/${perl.libPrefix}
22 '';
23
24 meta = with lib; {
25 homepage = "https://oss.oetiker.ch/rrdtool/";
26 description = "High performance logging in Round Robin Databases";
27 license = licenses.gpl2;
28 platforms = platforms.linux ++ platforms.darwin;
29 maintainers = with maintainers; [ pSub ];
30 };
31})