567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
25 lines
508 B
Nix
25 lines
508 B
Nix
{
|
|
buildPecl,
|
|
lib,
|
|
php,
|
|
}:
|
|
|
|
buildPecl {
|
|
pname = "mailparse";
|
|
|
|
version = "3.1.8";
|
|
hash = "sha256-Wb6rTvhRdwxJW6egcmq0DgmBNUaaEdnI5mWwiclu/C8=";
|
|
|
|
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 ];
|
|
};
|
|
}
|