From f8180fed9adebd7dac00f7764c3bb14f8c96bfe3 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sun, 11 Oct 2020 19:00:38 +0200 Subject: [PATCH] phpExtensions.mailparse: Move to separate directory --- .../php-packages/mailparse/default.nix | 15 +++++++++++++++ pkgs/top-level/php-packages.nix | 13 +------------ 2 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 pkgs/development/php-packages/mailparse/default.nix diff --git a/pkgs/development/php-packages/mailparse/default.nix b/pkgs/development/php-packages/mailparse/default.nix new file mode 100644 index 000000000000..4ec6f77df45c --- /dev/null +++ b/pkgs/development/php-packages/mailparse/default.nix @@ -0,0 +1,15 @@ +{ buildPecl, lib, php }: + +buildPecl { + pname = "mailparse"; + + version = "3.0.3"; + sha256 = "00nk14jbdbln93mx3ag691avc11ff94hkadrcv5pn51c6ihsxbmz"; + + internalDeps = [ php.extensions.mbstring ]; + postConfigure = '' + echo "#define HAVE_MBSTRING 1" >> config.h + ''; + + meta.maintainers = lib.teams.php.members; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 7656ffe7deb3..584a114c02fa 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -78,18 +78,7 @@ in imagick = callPackage ../development/php-packages/imagick { }; - mailparse = buildPecl { - version = "3.0.3"; - pname = "mailparse"; - sha256 = "00nk14jbdbln93mx3ag691avc11ff94hkadrcv5pn51c6ihsxbmz"; - - internalDeps = [ php.extensions.mbstring ]; - postConfigure = '' - echo "#define HAVE_MBSTRING 1" >> config.h - ''; - - meta.maintainers = lib.teams.php.members; - }; + mailparse = callPackage ../development/php-packages/mailparse { }; maxminddb = buildPecl rec { pname = "maxminddb";