@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, pkgconfig, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
1+{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
22let
33 ver_maj = "1.12";
44 ver_min = "0";
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 propagatedBuildInputs = [ cairo libsigcxx ];
16− buildInputs = [ fontconfig freetype ];
16+ buildInputs = [ fontconfig freetype ]
17+ ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
18+ ApplicationServices
19+ ]);
1720
1821 doCheck = true;
1922
@@ -35,6 +38,6 @@ stdenv.mkDerivation rec {
3538 homepage = http://cairographics.org/;
3639
3740 license = with licenses; [ lgpl2Plus mpl10 ];
38− platforms = platforms.linux;
41+ platforms = platforms.unix;
3942 };
4043}