pango: Add darwin frameworks for fond rendering

This commit is contained in:
Johannes Bornhold 2016-12-23 22:14:03 +01:00
parent bbdca635cf
commit 354c91df2e

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, libXft, cairo, harfbuzz
, libintlOrEmpty, gobjectIntrospection
, libintlOrEmpty, gobjectIntrospection, darwin
}:
with stdenv.lib;
@ -19,7 +19,12 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "devdoc" ];
buildInputs = [ gobjectIntrospection ];
nativeBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig ]
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
Carbon
CoreGraphics
CoreText
]);
propagatedBuildInputs = [ cairo harfbuzz libXft ] ++ libintlOrEmpty;
enableParallelBuilding = true;
@ -48,6 +53,6 @@ stdenv.mkDerivation rec {
license = licenses.lgpl2Plus;
maintainers = with maintainers; [ raskin urkud ];
platforms = with platforms; linux ++ darwin;
platforms = platforms.linux ++ platforms.darwin;
};
}