Commit b4fe08d2 authored by Max Ammann's avatar Max Ammann
Browse files

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.
parent 24aff837
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
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
+3 −0
Original line number Diff line number Diff line
@@ -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 ]