Skip to content

Commit

Permalink
php84Extensions.imagick: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkwiecinski committed Nov 30, 2024
1 parent 39728bf commit 6e826b7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/development/php-packages/imagick/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
buildPecl,
fetchpatch,
lib,
imagemagick,
pkg-config,
pcre2,
php,
}:

buildPecl {
Expand All @@ -16,6 +18,16 @@ buildPecl {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pcre2 ];

patches = lib.optionals (lib.versionAtLeast php.version "8.4") [
# PHP 8.4 compatibility patch based on https://github.com/Imagick/imagick/pull/690
# These is also an alternative https://github.com/Imagick/imagick/pull/704
# Which includes more changes but doesn't apply cleanly.
(fetchpatch {
url = "https://github.com/Imagick/imagick/commit/65e27f2bc02e7e8f1bf64e26e359e42a1331fca1.patch";
hash = "sha256-I0FwdqtQ/Y/QVkCl+nWPBIxsdQY6qcjdwiA/BaLNl7g=";
})
];

meta = with lib; {
description = "Imagick is a native php extension to create and modify images using the ImageMagick API";
license = licenses.php301;
Expand Down

0 comments on commit 6e826b7

Please sign in to comment.