2021-02-27 18:36:56 +01:00
|
|
|
{ buildPecl, fetchpatch, lib, imagemagick, pkg-config, pcre' }:
|
2020-10-11 18:00:01 +02:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "imagick";
|
|
|
|
|
|
|
|
version = "3.4.4";
|
|
|
|
sha256 = "0xvhaqny1v796ywx83w7jyjyd0nrxkxf34w9zi8qc8aw8qbammcd";
|
|
|
|
|
2020-12-01 10:39:38 +01:00
|
|
|
patches = [
|
|
|
|
# Fix compatibility with PHP 8.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Imagick/imagick/pull/336.patch";
|
|
|
|
sha256 = "nuRdh02qaMx0s/5OzlfWjyYgZG1zgrYnAjsZ/UVIrUM=";
|
|
|
|
})
|
2020-12-14 15:01:01 +01:00
|
|
|
# Fix detection of ImageMagick 7.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Imagick/imagick/commit/09551fbf38c16cdaf4ade7c08744501cd82d2747.patch";
|
|
|
|
sha256 = "qUeQHP08kKOzuQdEpR8RSZ18Yhi0U9z24KwQcAx1UVg=";
|
|
|
|
})
|
2020-12-01 10:39:38 +01:00
|
|
|
];
|
|
|
|
|
2021-02-27 18:36:56 +01:00
|
|
|
configureFlags = [ "--with-imagick=${imagemagick.dev}" ];
|
2021-02-27 11:29:20 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-11 18:00:01 +02:00
|
|
|
buildInputs = [ pcre' ];
|
|
|
|
|
|
|
|
meta.maintainers = lib.teams.php.members;
|
|
|
|
}
|