pango: fix build on darwin

This commit is contained in:
sempiternal-aurora
2026-07-01 12:05:45 +10:00
parent 8964b7533d
commit e00f711fb2
+17 -2
View File
@@ -25,6 +25,8 @@
buildPackages,
gobject-introspection,
testers,
# TODO: Clean up on `staging`.
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -58,6 +60,10 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withIntrospection [
gi-docgen
gobject-introspection
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
@@ -83,8 +89,17 @@ stdenv.mkDerivation (finalAttrs: {
];
# Fontconfig error: Cannot load default config file
env.FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ];
env = {
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ freefont_ttf ];
};
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# workaround for ld64 hardening issue
#
# TODO: Clean up on `staging`
CC_LD = "lld";
OBJC_LD = "lld";
};
# Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)