From 7d978a94134c2b39a20b48526cfe1a57ff29fa43 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:59:41 +0100 Subject: [PATCH] php84.extension.imagick: attempt to fix build --- pkgs/package-overrides.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index 6269168..7766012 100644 --- a/pkgs/package-overrides.nix +++ b/pkgs/package-overrides.nix @@ -349,6 +349,17 @@ in ourPatches ++ upstreamPatches; }); + imagick = if lib.versionAtLeast prev.php.version "8.4" then + prev.extensions.imagick.overrideAttrs (attrs: { + patches = (attrs.patches or []) ++ [ + (pkgs.fetchpatch { + url = "https://github.com/Imagick/imagick/commit/65e27f2bc02e7e8f1bf64e26e359e42a1331fca1.patch"; + hash ="sha256-I0FwdqtQ/Y/QVkCl+nWPBIxsdQY6qcjdwiA/BaLNl7g="; + }) + ]; + }) + else prev.extensions.imagick; + imap = if lib.versionOlder prev.php.version "8.1" && pkgs.stdenv.cc.isClang then prev.extensions.imap.overrideAttrs (attrs: {