tracy: fix build on macos (fixes #223469)

The UniformTypeIdentifiers is required for apple SDK 11+.
This patch fixes the build on newwer macOS versions.
This commit is contained in:
Max Ammann 2023-03-29 21:45:36 -04:00
parent 4e416a8e84
commit b6ecc4fec1

View File

@ -19,6 +19,7 @@ in stdenv.mkDerivation rec {
buildInputs = [ glfw capstone ]
++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ]
++ lib.optionals (stdenv.isDarwin && lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") [ darwin.apple_sdk.frameworks.UniformTypeIdentifiers ]
++ lib.optionals stdenv.isLinux [ gtk3 tbb dbus ];
env.NIX_CFLAGS_COMPILE = toString ([ ]