diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 329c35e226c1..17434f221a65 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -73,6 +73,21 @@ let ]; }; + php_excel = assert isPhp7; buildPecl rec { + name = "php_excel"; + version = "1.0.2"; + phpVersion = "php7"; + + buildInputs = [ pkgs.libxl ]; + + src = pkgs.fetchurl { + url = "https://github.com/iliaal/${name}/releases/download/Excel-1.0.2-PHP7/excel-${version}-${phpVersion}.tgz"; + sha256 = "0dpvih9gpiyh1ml22zi7hi6kslkilzby00z1p8x248idylldzs2n"; + }; + + configureFlags = [ "--with-excel" "--with-libxl-incdir=${pkgs.libxl}/include_c" "--with-libxl-libdir=${pkgs.libxl}/lib" ]; + }; + igbinary = buildPecl { name = "igbinary-2.0.4";