rrdtool: darwin compatibility

I needed Tcl-8.5 to build on darwin. Not sure where it comes from on
Linux.

+5 -3
+5 -3
pkgs/tools/misc/rrdtool/default.nix
··· 1 - { fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff }: 2 3 stdenv.mkDerivation rec { 4 name = "rrdtool-1.5.5"; ··· 6 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz"; 7 sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s"; 8 }; 9 - buildInputs = [ gettext perl pkgconfig libxml2 pango cairo groff ]; 10 11 postInstall = '' 12 # for munin and rrdtool support ··· 18 homepage = http://oss.oetiker.ch/rrdtool/; 19 description = "High performance logging in Round Robin Databases"; 20 license = licenses.gpl2; 21 - platforms = platforms.linux; 22 maintainers = with maintainers; [ pSub ]; 23 }; 24 }
··· 1 + { fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff 2 + , tcl-8_5 }: 3 4 stdenv.mkDerivation rec { 5 name = "rrdtool-1.5.5"; ··· 7 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz"; 8 sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s"; 9 }; 10 + buildInputs = [ gettext perl pkgconfig libxml2 pango cairo groff ] 11 + ++ stdenv.lib.optional stdenv.isDarwin tcl-8_5; 12 13 postInstall = '' 14 # for munin and rrdtool support ··· 20 homepage = http://oss.oetiker.ch/rrdtool/; 21 description = "High performance logging in Round Robin Databases"; 22 license = licenses.gpl2; 23 + platforms = platforms.linux ++ platforms.darwin; 24 maintainers = with maintainers; [ pSub ]; 25 }; 26 }