luaPackages.magick: fix libMagickWand-7.Q16HDRI path on darwin

Darwin uses .dylib as the extension for dynamic libraries. Replace the
hardcoded extension with stdenv.hostPlatform.extensions.sharedLibrary
to fix magick support on darwin.
This commit is contained in:
eth3lbert 2023-11-30 15:56:39 +08:00
parent b4a01cdf31
commit 3d67ee03ab
No known key found for this signature in database

@ -501,7 +501,7 @@ with prev;
postPatch = ''
substituteInPlace magick/wand/lib.lua \
--replace @nix_wand@ ${imagemagick}/lib/libMagickWand-7.Q16HDRI.so
--replace @nix_wand@ ${imagemagick}/lib/libMagickWand-7.Q16HDRI${stdenv.hostPlatform.extensions.sharedLibrary}
'';
# Requires ffi