php80.extensions.imagick: fix build

This commit is contained in:
Jan Tojnar 2020-12-01 10:39:38 +01:00 committed by Soner Sayakci
parent 4cd8412880
commit 4cc4c7a77a
No known key found for this signature in database
GPG Key ID: 9C1024313354ABDE

View File

@ -1,4 +1,4 @@
{ buildPecl, lib, pkgs, pcre' }:
{ buildPecl, fetchpatch, lib, pkgs, pcre' }:
buildPecl {
pname = "imagick";
@ -6,6 +6,14 @@ buildPecl {
version = "3.4.4";
sha256 = "0xvhaqny1v796ywx83w7jyjyd0nrxkxf34w9zi8qc8aw8qbammcd";
patches = [
# Fix compatibility with PHP 8.
(fetchpatch {
url = "https://github.com/Imagick/imagick/pull/336.patch";
sha256 = "nuRdh02qaMx0s/5OzlfWjyYgZG1zgrYnAjsZ/UVIrUM=";
})
];
configureFlags = [ "--with-imagick=${pkgs.imagemagick.dev}" ];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pcre' ];