cairomm: fix on darwin

This commit is contained in:
Vincent Laporte 2016-08-24 14:22:35 +02:00
parent 8512747ca5
commit b4b244de2a

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, pkgconfig, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
let
ver_maj = "1.12";
ver_min = "0";
@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ cairo libsigcxx ];
buildInputs = [ fontconfig freetype ];
buildInputs = [ fontconfig freetype ]
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices
]);
doCheck = true;
@ -35,6 +38,6 @@ stdenv.mkDerivation rec {
homepage = http://cairographics.org/;
license = with licenses; [ lgpl2Plus mpl10 ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}