about summary refs log tree commit diff
path: root/pkgs/development/libraries/libass
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-11-11 11:29:20 -0800
committercomex <comexk@gmail.com>2023-11-11 11:51:46 -0800
commit406de7fdc30979f745f6a0747d16985a5cd811c5 (patch)
tree8b0545196a479c50c1de74e5a741044563848b8c /pkgs/development/libraries/libass
parentdaad29f97e9e144e0a4ed81851bdf7edfd1f7bd9 (diff)
libass: enable CoreText backend on darwin
libass has multiple font rendering backends which are autodetected by
the configure script.  On macOS, there is a CoreText backend, but it
was disabled in Nix's build because the relevant native frameworks
weren't visible to the configure script.  Fix that.
Diffstat (limited to 'pkgs/development/libraries/libass')
-rw-r--r--pkgs/development/libraries/libass/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libass/default.nix b/pkgs/development/libraries/libass/default.nix
index 3265fd7d093e3..ad94f55ccb6df 100644
--- a/pkgs/development/libraries/libass/default.nix
+++ b/pkgs/development/libraries/libass/default.nix
@@ -4,6 +4,7 @@
 , rasterizerSupport ? false # Internal rasterizer
 , largeTilesSupport ? false # Use larger tiles in the rasterizer
 , libiconv
+, darwin
 }:
 
 assert fontconfigSupport -> fontconfig != null;
@@ -29,7 +30,12 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ freetype fribidi harfbuzz ]
     ++ lib.optional fontconfigSupport fontconfig
-    ++ lib.optional stdenv.isDarwin libiconv;
+    ++ lib.optional stdenv.isDarwin [
+      libiconv
+      darwin.apple_sdk.frameworks.ApplicationServices
+      darwin.apple_sdk.frameworks.CoreFoundation
+      darwin.apple_sdk.frameworks.CoreText
+    ];
 
   meta = with lib; {
     description = "Portable ASS/SSA subtitle renderer";