Skip to content

Commit 3bf76a4

Browse files
committed
macos(mc-rtc-magnum): do not link against MH_BUNDLE libraries
1 parent 11cee3f commit 3bf76a4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkgs/mc-rtc-magnum/standalone.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ stdenv.mkDerivation {
4949
--set WAYLAND_DISPLAY ""
5050
'';
5151

52+
# FIXME upstream
53+
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
54+
# Remove Magnum runtime plugins from being hard-linked at compile time on macOS
55+
substituteInPlace src/CMakeLists.txt \
56+
--replace "MagnumPlugins::AnyImageImporter" "" \
57+
--replace "MagnumPlugins::AnySceneImporter" ""
58+
'';
59+
5260
cmakeFlags = [
5361
"-DMAGNUM_WITH_PLUGINS_LIBDIR=${magnum-with-plugins}/lib/magnum/importers"
5462
];

0 commit comments

Comments
 (0)