75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
24 lines
566 B
Nix
24 lines
566 B
Nix
{ buildPecl, fetchurl, lib, libxl }:
|
|
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";
|
|
};
|
|
|
|
buildInputs = [ libxl ];
|
|
|
|
configureFlags = [
|
|
"--with-excel"
|
|
"--with-libxl-incdir=${libxl}/include_c"
|
|
"--with-libxl-libdir=${libxl}/lib"
|
|
];
|
|
|
|
meta.maintainers = lib.teams.php.members;
|
|
}
|