git.iko.soy/typeable/nixpkgs
on master help sign in
rrdtool: darwin compatibility
daafa65Anthony Cowley
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 }:
2
3
3stdenv.mkDerivation rec {
4stdenv.mkDerivation rec {
4 name = "rrdtool-1.5.5";
5 name = "rrdtool-1.5.5";
@@ -6,7 +7,8 @@ stdenv.mkDerivation rec {
6 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz";
7 url = "http://oss.oetiker.ch/rrdtool/pub/${name}.tar.gz";
7 sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s";
8 sha256 = "1xm6ikzx8iaa6r7v292k8s7srkzhnifamp1szkimgmh5ki26sa1s";
8 };
9 };
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;
10
12
11 postInstall = ''
13 postInstall = ''
12 # for munin and rrdtool support
14 # for munin and rrdtool support
@@ -18,7 +20,7 @@ stdenv.mkDerivation rec {
18 homepage = http://oss.oetiker.ch/rrdtool/;
20 homepage = http://oss.oetiker.ch/rrdtool/;
19 description = "High performance logging in Round Robin Databases";
21 description = "High performance logging in Round Robin Databases";
20 license = licenses.gpl2;
22 license = licenses.gpl2;
21− platforms = platforms.linux;
23+ platforms = platforms.linux ++ platforms.darwin;
22 maintainers = with maintainers; [ pSub ];
24 maintainers = with maintainers; [ pSub ];
23 };
25 };
24}
26}