tracy: Remove UniformTypeIdentifiers depending on SDK

The UniformTypeIdentifiers is only required on SDK 11+. On SDK 10 (on which it is not available) we can remove it using a patch.
This commit is contained in:
Max Ammann 2023-04-03 22:25:04 -04:00
parent 24aff837bd
commit b4fe08d2d6
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/profiler/build/unix/legacy.mk b/profiler/build/unix/legacy.mk
index 24765f1a..8baffb68 100644
--- a/profiler/build/unix/legacy.mk
+++ b/profiler/build/unix/legacy.mk
@@ -16,7 +16,7 @@ else
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
SRC3 += ../../../nfd/nfd_cocoa.m
- LIBS += -framework CoreFoundation -framework AppKit -framework UniformTypeIdentifiers
+ LIBS += -framework CoreFoundation -framework AppKit
else
ifdef TRACY_GTK_FILESELECTOR
SRC += ../../../nfd/nfd_gtk.cpp

View File

@ -15,6 +15,9 @@ in stdenv.mkDerivation rec {
sha256 = "sha256-K1lQNRS8+ju9HyKNVXtHqslrPWcPgazzTitvwkIO3P4";
};
patches = [ ]
++ lib.optionals (stdenv.isDarwin && !(lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11")) [ ./0001-remove-unifiedtypeidentifiers-framework ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glfw capstone ]