05580f4b44
Follow-up to #394797. Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
27 lines
579 B
Nix
27 lines
579 B
Nix
{
|
|
buildPecl,
|
|
lib,
|
|
mpdecimal,
|
|
php,
|
|
}:
|
|
let
|
|
version = "1.5.0";
|
|
in
|
|
buildPecl {
|
|
pname = "decimal";
|
|
|
|
version = version;
|
|
hash = "sha256-it8w8hOLYwtCZoDYhaP5k5TD/pQLtj37K2lSESF80ok=";
|
|
|
|
buildInputs = [ mpdecimal ];
|
|
configureFlags = [ "--with-libmpdec-path=${mpdecimal}" ];
|
|
|
|
meta = {
|
|
description = "Arbitrary-precision decimal arithmetic for PHP";
|
|
homepage = "https://php-decimal.github.io";
|
|
changelog = "https://pecl.php.net/package-changelog.php?package=decimal&release=${version}";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.php ];
|
|
};
|
|
}
|