Files
nixpkgs/pkgs/by-name/sc/scopehal-apps/remove-brew-molten-vk-lookup.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

37 lines
1.4 KiB
Diff

diff --git a/src/ngscopeclient/CMakeLists.txt b/src/ngscopeclient/CMakeLists.txt
index fb6d19fa..25611981 100644
--- a/src/ngscopeclient/CMakeLists.txt
+++ b/src/ngscopeclient/CMakeLists.txt
@@ -249,31 +249,6 @@ if(LINUX)
DESTINATION share/mime/packages)
endif()
-if(APPLE)
- set(APPS "\${CMAKE_INSTALL_PREFIX}/bin/ngscopeclient")
- set(DIRS "\${CMAKE_INSTALL_PREFIX}/lib")
- set(FRAMEWORKS "\${CMAKE_INSTALL_PREFIX}/Frameworks")
- execute_process(
- COMMAND brew --prefix molten-vk
- RESULT_VARIABLE MOLTEN_VK_RESULT
- OUTPUT_VARIABLE MOLTEN_VK_OUTPUT
- ERROR_QUIET
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if(NOT MOLTEN_VK_RESULT EQUAL 0)
- message(FATAL_ERROR "failed to find Homebrew prefix for molten-vk")
- endif()
- # https://vulkan.lunarg.com/doc/view/1.3.275.0/mac/getting_started.html#application-bundle-structure-on-macos
- install(FILES "${CMAKE_SOURCE_DIR}/src/ngscopeclient/macos/MoltenVK_icd.json"
- DESTINATION bin/vulkan/icd.d/)
- install(FILES "${MOLTEN_VK_OUTPUT}/lib/libMoltenVK.dylib" DESTINATION lib)
- install(CODE "
- include(BundleUtilities)
- fixup_bundle(\"${APPS}\" \"lib/libMoltenVK.dylib\" \"${DIRS}\")
- include(\"${CMAKE_SOURCE_DIR}/src/ngscopeclient/macos/signing.cmake\")
- ")
-endif()
-
# ngscopeclient Windows portable zip/MSI installer build
if(WIXPATH AND WIN32)
# Run the command to get /mingw64/bin full path using where gcc