mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 14:41:18 +00:00
darktable: fix build on Darwin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user