depot/third_party/nixpkgs/pkgs/tools/misc/rrdtool/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

31 lines
976 B
Nix

{ fetchurl, lib, stdenv, gettext, perl, pkg-config, libxml2, pango, cairo, groff
, tcl, darwin }:
perl.pkgs.toPerlModule (stdenv.mkDerivation rec {
pname = "rrdtool";
version = "1.7.2";
src = fetchurl {
url = "https://oss.oetiker.ch/rrdtool/pub/rrdtool-${version}.tar.gz";
sha256 = "1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzm6d1";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gettext perl libxml2 pango cairo groff ]
++ lib.optionals stdenv.isDarwin [ tcl darwin.apple_sdk.frameworks.ApplicationServices ];
postInstall = ''
# for munin and rrdtool support
mkdir -p $out/${perl.libPrefix}
mv $out/lib/perl/5* $out/${perl.libPrefix}
'';
meta = with lib; {
homepage = "https://oss.oetiker.ch/rrdtool/";
description = "High performance logging in Round Robin Databases";
license = licenses.gpl2;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ pSub ];
};
})