rrdtool: fix macOS build

This commit is contained in:
Matthew Bauer 2017-04-07 22:55:49 -05:00
parent 06716f310a
commit 65d9a8e4fb
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff { fetchurl, stdenv, gettext, perl, pkgconfig, libxml2, pango, cairo, groff
, tcl-8_5 }: , tcl-8_5, darwin }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rrdtool-1.6.0"; name = "rrdtool-1.6.0";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext perl libxml2 pango cairo groff ] buildInputs = [ gettext perl libxml2 pango cairo groff ]
++ stdenv.lib.optional stdenv.isDarwin tcl-8_5; ++ stdenv.lib.optionals stdenv.isDarwin [ tcl-8_5 darwin.apple_sdk.frameworks.ApplicationServices ];
postInstall = '' postInstall = ''
# for munin and rrdtool support # for munin and rrdtool support