php84Extensions.decimal: init at 1.5.0

This commit is contained in:
agj 2025-02-05 13:53:37 -03:00 committed by GitHub
parent 5f3540778e
commit 3e83bf8c9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
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;
maintainers = lib.teams.php.members;
};
}

View File

@ -292,6 +292,8 @@ lib.makeScope pkgs.newScope (
inherit (pkgs) darwin;
};
decimal = callPackage ../development/php-packages/decimal { };
ds = callPackage ../development/php-packages/ds { };
event = callPackage ../development/php-packages/event { };