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.

+16
+13
pkgs/development/tools/tracy/0001-remove-unifiedtypeidentifiers-framework
··· 1 + diff --git a/profiler/build/unix/legacy.mk b/profiler/build/unix/legacy.mk 2 + index 24765f1a..8baffb68 100644 3 + --- a/profiler/build/unix/legacy.mk 4 + +++ b/profiler/build/unix/legacy.mk 5 + @@ -16,7 +16,7 @@ else 6 + UNAME := $(shell uname -s) 7 + ifeq ($(UNAME),Darwin) 8 + SRC3 += ../../../nfd/nfd_cocoa.m 9 + - LIBS += -framework CoreFoundation -framework AppKit -framework UniformTypeIdentifiers 10 + + LIBS += -framework CoreFoundation -framework AppKit 11 + else 12 + ifdef TRACY_GTK_FILESELECTOR 13 + SRC += ../../../nfd/nfd_gtk.cpp
+3
pkgs/development/tools/tracy/default.nix
··· 15 15 sha256 = "sha256-K1lQNRS8+ju9HyKNVXtHqslrPWcPgazzTitvwkIO3P4"; 16 16 }; 17 17 18 + patches = [ ] 19 + ++ lib.optionals (stdenv.isDarwin && !(lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11")) [ ./0001-remove-unifiedtypeidentifiers-framework ]; 20 + 18 21 nativeBuildInputs = [ pkg-config ]; 19 22 20 23 buildInputs = [ glfw capstone ]