nixpkgs/pkgs/by-name/rr/rrdtool/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.4 KiB
Nix
Raw Normal View History

2024-08-06 12:02:23 +00:00
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
gettext,
perl,
pkg-config,
libxml2,
pango,
cairo,
groff,
tcl,
darwin,
}:
2024-08-06 12:02:23 +00:00
perl.pkgs.toPerlModule (
stdenv.mkDerivation rec {
pname = "rrdtool";
version = "1.9.0";
2017-01-22 00:38:29 +00:00
2024-08-06 12:02:23 +00:00
src = fetchFromGitHub {
owner = "oetiker";
repo = "rrdtool-1.x";
rev = "v${version}";
hash = "sha256-CPbSu1mosNlfj2nqiNVH14a5C5njkfvJM8ix3X3aP8E=";
};
2017-01-22 00:38:29 +00:00
2024-08-06 12:02:23 +00:00
# Fix darwin build
patches = lib.optional stdenv.hostPlatform.isDarwin (fetchpatch {
url = "https://github.com/oetiker/rrdtool-1.x/pull/1262.patch";
hash = "sha256-aP0rmDlILn6VC8Tg7HpRXbxL9+KD/PRTbXnbQ7HgPEg=";
});
2024-08-06 12:01:52 +00:00
2024-08-06 12:02:23 +00:00
nativeBuildInputs = [
pkg-config
autoreconfHook
];
2017-02-05 18:05:49 +00:00
2024-08-06 12:02:23 +00:00
buildInputs =
[
gettext
perl
libxml2
pango
cairo
groff
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
tcl
darwin.apple_sdk.frameworks.ApplicationServices
];
2017-01-22 00:38:29 +00:00
2024-08-06 12:02:23 +00:00
postInstall = ''
# for munin and rrdtool support
mkdir -p $out/${perl.libPrefix}
mv $out/lib/perl/5* $out/${perl.libPrefix}
'';
2024-08-06 12:02:23 +00:00
meta = with lib; {
homepage = "https://oss.oetiker.ch/rrdtool/";
description = "High performance logging in Round Robin Databases";
license = licenses.gpl2Only;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ pSub ];
};
}
)