lol
at 18.03-beta 38 lines 1.2 kB view raw
1{ fetchurl, fetchpatch, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff 2, tcl-8_5, darwin }: 3 4stdenv.mkDerivation rec { 5 name = "rrdtool-1.7.0"; 6 7 src = fetchurl { 8 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz"; 9 sha256 = "0ssjqpa0dwwzbylc0drmlbq922qcw8crffc0rpr805xr6n4k8zgr"; 10 }; 11 12 patches = [ 13 # fix regression https://github.com/oetiker/rrdtool-1.x/issues/794 14 (fetchpatch { 15 url = "https://github.com/oetiker/rrdtool-1.x/compare/0f28f99...f1edd12.patch"; 16 sha256 = "10g56zy0rdjpv3kvvmf6vvaysmla05wi8byy3l0xrz2x8m02ylqq"; 17 }) 18 ]; 19 20 nativeBuildInputs = [ pkgconfig ]; 21 22 buildInputs = [ gettext perl libxml2 pango cairo groff ] 23 ++ stdenv.lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ]; 24 25 postInstall = '' 26 # for munin and rrdtool support 27 mkdir -p $out/lib/perl5/site_perl/ 28 mv $out/lib/perl/5* $out/lib/perl5/site_perl/ 29 ''; 30 31 meta = with stdenv.lib; { 32 homepage = https://oss.oetiker.ch/rrdtool/; 33 description = "High performance logging in Round Robin Databases"; 34 license = licenses.gpl2; 35 platforms = platforms.linux ++ platforms.darwin; 36 maintainers = with maintainers; [ pSub ]; 37 }; 38}