1{ buildPecl, fetchurl, lib, libxl, php }:
2let
3 pname = "php_excel";
4 phpVersion = "php7";
5 version = "1.0.2";
6in
7buildPecl {
8 inherit pname version;
9
10 src = fetchurl {
11 url = "https://github.com/iliaal/php_excel/releases/download/Excel-1.0.2-PHP7/excel-${version}-${phpVersion}.tgz";
12 sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n";
13 };
14
15 buildInputs = [ libxl ];
16
17 configureFlags = [
18 "--with-excel"
19 "--with-libxl-incdir=${libxl}/include_c"
20 "--with-libxl-libdir=${libxl}/lib"
21 ];
22
23 meta = with lib; {
24 description = "PHP Extension interface to the Excel writing/reading library";
25 license = licenses.php301;
26 homepage = "https://github.com/iliaal/php_excel";
27 maintainers = lib.teams.php.members;
28 broken = lib.versionAtLeast php.version "8.0";
29 };
30}