Skip to content

Commit

Permalink
php84.extension.imagick: attempt to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkwiecinski authored and drupol committed Dec 1, 2024
1 parent d48ddb4 commit 7d978a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7d978a9

Please sign in to comment.