about summary refs log tree commit diff
path: root/pkgs/development/tools/tracy
diff options
context:
space:
mode:
authorMax Ammann <max@maxammann.org>2023-04-03 22:25:04 -0400
committerMax Ammann <max@maxammann.org>2023-04-03 22:25:04 -0400
commitb4fe08d2d67ab0cbefe157d640ff0ebc75c644ca (patch)
treec1754ac3b5435ff022e788e93cf4245d40669a23 /pkgs/development/tools/tracy
parent24aff837bd92cd9dfc5548d712c6d46ac8727413 (diff)
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.
Diffstat (limited to 'pkgs/development/tools/tracy')
-rw-r--r--pkgs/development/tools/tracy/0001-remove-unifiedtypeidentifiers-framework13
-rw-r--r--pkgs/development/tools/tracy/default.nix3
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/tools/tracy/0001-remove-unifiedtypeidentifiers-framework b/pkgs/development/tools/tracy/0001-remove-unifiedtypeidentifiers-framework
new file mode 100644
index 0000000000000..0dc5a7eb68f16
--- /dev/null
+++ b/pkgs/development/tools/tracy/0001-remove-unifiedtypeidentifiers-framework
@@ -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
diff --git a/pkgs/development/tools/tracy/default.nix b/pkgs/development/tools/tracy/default.nix
index b4378eef78596..bca3a9ceb1d47 100644
--- a/pkgs/development/tools/tracy/default.nix
+++ b/pkgs/development/tools/tracy/default.nix
@@ -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 ]