nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildPecl,
3 lib,
4 php,
5}:
6
7buildPecl {
8 pname = "mailparse";
9
10 version = "3.1.9";
11 hash = "sha256-7LPTydyffOA0GC1Hi3JKw8sCCY78aaOcA1NPCxkgkis=";
12
13 internalDeps = [ php.extensions.mbstring ];
14 postConfigure = ''
15 echo "#define HAVE_MBSTRING 1" >> config.h
16 '';
17
18 meta = {
19 description = "Mailparse is an extension for parsing and working with email messages";
20 license = lib.licenses.php301;
21 homepage = "https://pecl.php.net/package/mailparse";
22 teams = [ lib.teams.php ];
23 };
24}