at master 579 B view raw
1{ 2 buildPecl, 3 lib, 4 mpdecimal, 5 php, 6}: 7let 8 version = "1.5.0"; 9in 10buildPecl { 11 pname = "decimal"; 12 13 version = version; 14 hash = "sha256-it8w8hOLYwtCZoDYhaP5k5TD/pQLtj37K2lSESF80ok="; 15 16 buildInputs = [ mpdecimal ]; 17 configureFlags = [ "--with-libmpdec-path=${mpdecimal}" ]; 18 19 meta = { 20 description = "Arbitrary-precision decimal arithmetic for PHP"; 21 homepage = "https://php-decimal.github.io"; 22 changelog = "https://pecl.php.net/package-changelog.php?package=decimal&release=${version}"; 23 license = lib.licenses.mit; 24 teams = [ lib.teams.php ]; 25 }; 26}