Merge pull request #1 from kaesaecracker/fix-macos

Fix macos
This commit is contained in:
Vinzenz Schroeter 2024-11-28 19:47:17 +01:00 committed by GitHub
commit 24d1c54299
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -24,7 +24,11 @@ version = "0.30"
features = ["rwh_05"] features = ["rwh_05"]
default-features = true default-features = true
[dependencies.font-kit] [target.'cfg(target_os = "linux")'.dependencies.font-kit]
version = "0.14.2" version = "0.14.2"
features = ["loader-freetype-default", "source-fontconfig-dlopen"] features = ["loader-freetype-default", "source-fontconfig-dlopen"]
default-features = false default-features = false
[target.'cfg(target_os = "macos")'.dependencies.font-kit]
version = "0.14.2"
default-features = true

View file

@ -88,6 +88,14 @@
xorg.libX11 xorg.libX11
xorg.libX11.dev xorg.libX11.dev
] ]
))
++ (lib.optionals pkgs.stdenv.isDarwin (
with pkgs.darwin.apple_sdk.frameworks;
[
Carbon
QuartzCore
AppKit
]
)); ));
postInstall = '' postInstall = ''