diff --git a/pkgs/development/php-packages/imagick/default.nix b/pkgs/development/php-packages/imagick/default.nix new file mode 100644 index 000000000000..63524fb2d068 --- /dev/null +++ b/pkgs/development/php-packages/imagick/default.nix @@ -0,0 +1,14 @@ +{ buildPecl, lib, pkgs, pcre' }: + +buildPecl { + pname = "imagick"; + + version = "3.4.4"; + sha256 = "0xvhaqny1v796ywx83w7jyjyd0nrxkxf34w9zi8qc8aw8qbammcd"; + + configureFlags = [ "--with-imagick=${pkgs.imagemagick.dev}" ]; + nativeBuildInputs = [ pkgs.pkgconfig ]; + buildInputs = [ pcre' ]; + + meta.maintainers = lib.teams.php.members; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 113081686a9d..7656ffe7deb3 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -76,18 +76,7 @@ in igbinary = callPackage ../development/php-packages/igbinary { }; - imagick = buildPecl { - version = "3.4.4"; - pname = "imagick"; - - sha256 = "0xvhaqny1v796ywx83w7jyjyd0nrxkxf34w9zi8qc8aw8qbammcd"; - - configureFlags = [ "--with-imagick=${pkgs.imagemagick.dev}" ]; - nativeBuildInputs = [ pkgs.pkgconfig ]; - buildInputs = [ pcre' ]; - - meta.maintainers = lib.teams.php.members; - }; + imagick = callPackage ../development/php-packages/imagick { }; mailparse = buildPecl { version = "3.0.3";