git.iko.soy/typeable/nixpkgs
on master help sign in
rrdtool: darwin compatibility

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

commitdaafa6514cdfa4e9438ae08493609d9c3ec6c176 authorAnthony Cowley <acowley@gmail.com> dateWed 11 May 2016, 19:30 (11 years ago) parent33449c5
1 file changed+5−3
pkgs/tools/misc/rrdtool/default.nix+5−3
pkgs/tools/misc/rrdtool/default.nix+5−3
@@ -1,4 +1,5 @@
1−{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff }:
1+{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
2+, tcl-8_5 }:
23
34stdenv.mkDerivation rec {
45 name = "rrdtool-1.5.5";
@@ -6,7 +7,8 @@ stdenv.mkDerivation rec {
67 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz";
78 sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s";
89 };
9− buildInputs = [ gettext perl pkgconfig libxml2 pango cairo groff ];
10+ buildInputs = [ gettext perl pkgconfig libxml2 pango cairo groff ]
11+ ++ stdenv.lib.optional stdenv.isDarwin tcl-8_5;
1012
1113 postInstall = ''
1214 # for munin and rrdtool support
@@ -18,7 +20,7 @@ stdenv.mkDerivation rec {
1820 homepage = http://oss.oetiker.ch/rrdtool/;
1921 description = "High performance logging in Round Robin Databases";
2022 license = licenses.gpl2;
21− platforms = platforms.linux;
23+ platforms = platforms.linux ++ platforms.darwin;
2224 maintainers = with maintainers; [ pSub ];
2325 };
2426}