summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJohannes Bornhold <johannes@bornhold.name>2016-12-23 22:14:03 +0100
committerJohannes Bornhold <johannes@bornhold.name>2017-01-07 17:31:10 +0100
commit354c91df2e40e2f61719e33b7186fe089d2219e7 (patch)
treeccddc15b5dc4dd31d9f55c77975c92c0bc5efb3e /pkgs
parentbbdca635cf0b2e1f7f0b33eebc07686cfcebf975 (diff)
downloadnixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar.gz
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar.bz2
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar.lz
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar.xz
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.tar.zst
nixpkgs-354c91df2e40e2f61719e33b7186fe089d2219e7.zip
pango: Add darwin frameworks for fond rendering
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/pango/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/pango/default.nix b/pkgs/development/libraries/pango/default.nix
index f39fc2afe7d..22cf7be84d0 100644
--- a/pkgs/development/libraries/pango/default.nix
+++ b/pkgs/development/libraries/pango/default.nix
@@ -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;
   };
 }