summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2023-11-10 12:10:58 -0500
committerGitHub <noreply@github.com>2023-11-10 12:10:58 -0500
commitcc0c0f9ee72821bc85611758ddb7ea353aa7939a (patch)
treea5d88f03dfb698ac71a950116ab625b1616335a5 /pkgs/applications/video
parentd8ebb730230386ceb409962a8c040a22c6ab6650 (diff)
parent38a5be67ea98e5e7d1a5466a9ed476e18a855b50 (diff)
Merge pull request #266679 from reckenrode/libopenshot-fix
libopenshot: fix build on Darwin
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/openshot-qt/libopenshot.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/video/openshot-qt/libopenshot.nix b/pkgs/applications/video/openshot-qt/libopenshot.nix
index 8335e01e2db3c..38366782f3bef 100644
--- a/pkgs/applications/video/openshot-qt/libopenshot.nix
+++ b/pkgs/applications/video/openshot-qt/libopenshot.nix
@@ -31,6 +31,10 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     sed -i 's/{UNITTEST++_INCLUDE_DIR}/ENV{UNITTEST++_INCLUDE_DIR}/g' tests/CMakeLists.txt
+  '' + lib.optionalString stdenv.isDarwin ''
+    # Darwin requires both Magick++ and MagickCore or it will fail to link.
+    substituteInPlace src/CMakeLists.txt \
+      --replace 'target_link_libraries(openshot PUBLIC ImageMagick::Magick++)' 'target_link_libraries(openshot PUBLIC ImageMagick::Magick++ ImageMagick::MagickCore)'
   '';
 
   nativeBuildInputs = lib.optionals stdenv.isLinux [