darktable: fix build on Darwin

This commit is contained in:
Mukul Agarwal
2026-07-13 20:48:49 -04:00
parent fc381fcbc7
commit 3aad607343

View File

@@ -103,7 +103,8 @@ stdenv.mkDerivation rec {
pkg-config
wrapGAppsHook3
saxon # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues
];
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
buildInputs = [
SDL2
@@ -184,6 +185,12 @@ stdenv.mkDerivation rec {
"-DUSE_KWALLET=OFF"
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
# darktable changed its rpath handling in commit
# 83c70b876af6484506901e6b381304ae0d073d3c and as a result the
# binaries can't find libdarktable.so, so change LD_LIBRARY_PATH in