summaryrefslogtreecommitdiffstats
path: root/pkgs/development/php-packages/mailparse/default.nix
blob: 7a2f0f993280d01ce776611c99d2ce01d05627be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  buildPecl,
  lib,
  php,
}:

buildPecl {
  pname = "mailparse";

  version = "3.1.9";
  hash = "sha256-7LPTydyffOA0GC1Hi3JKw8sCCY78aaOcA1NPCxkgkis=";

  internalDeps = [ php.extensions.mbstring ];
  postConfigure = ''
    echo "#define HAVE_MBSTRING 1" >> config.h
  '';

  meta = {
    description = "Mailparse is an extension for parsing and working with email messages";
    license = lib.licenses.php301;
    homepage = "https://pecl.php.net/package/mailparse";
    teams = [ lib.teams.php ];
  };
}