mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
libopenshot: fix build on Darwin
Make sure it includes MagickCore when linking libopenshot.dylib, or it will fail with missing symbols. Use the 11.0 SDK to build.
This commit is contained in:
parent
9a0c85ffc5
commit
38a5be67ea
@ -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 [
|
||||
|
@ -128,7 +128,9 @@ in (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdParty // kdeGea
|
||||
|
||||
liblastfm = callPackage ../development/libraries/liblastfm { };
|
||||
|
||||
libopenshot = callPackage ../applications/video/openshot-qt/libopenshot.nix { };
|
||||
libopenshot = callPackage ../applications/video/openshot-qt/libopenshot.nix {
|
||||
stdenv = if pkgs.stdenv.isDarwin then pkgs.overrideSDK pkgs.stdenv "11.0" else pkgs.stdenv;
|
||||
};
|
||||
|
||||
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user