From 3d67ee03abd7a37da37b4f87972ccb03746224fb Mon Sep 17 00:00:00 2001 From: eth3lbert Date: Thu, 30 Nov 2023 15:56:39 +0800 Subject: [PATCH] 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. --- pkgs/development/lua-modules/overrides.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index e62b32ce6b60..d6b95eb6593d 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -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