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:
parent
b4a01cdf31
commit
3d67ee03ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue