2021-06-06 07:54:09 +00:00
|
|
|
{ buildPecl, fetchurl, lib, libxl, php }:
|
2020-10-16 20:44:37 +00:00
|
|
|
let
|
|
|
|
pname = "php_excel";
|
|
|
|
phpVersion = "php7";
|
|
|
|
version = "1.0.2";
|
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/iliaal/php_excel/releases/download/Excel-1.0.2-PHP7/excel-${version}-${phpVersion}.tgz";
|
|
|
|
sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ libxl ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-excel"
|
2021-03-09 03:18:52 +00:00
|
|
|
"--with-libxl-incdir=${libxl}/include_c"
|
|
|
|
"--with-libxl-libdir=${libxl}/lib"
|
2020-10-16 20:44:37 +00:00
|
|
|
];
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
meta.broken = lib.versionAtLeast php.version "8.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
meta.maintainers = lib.teams.php.members;
|
|
|
|
}
|