summary refs log tree commit diff
path: root/pkgs/development/php-packages/php_excel
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/php-packages/php_excel')
-rw-r--r--pkgs/development/php-packages/php_excel/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/php-packages/php_excel/default.nix b/pkgs/development/php-packages/php_excel/default.nix
new file mode 100644
index 00000000000..0930926a06e
--- /dev/null
+++ b/pkgs/development/php-packages/php_excel/default.nix
@@ -0,0 +1,30 @@
+{ buildPecl, fetchurl, lib, libxl, php }:
+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 = with lib; {
+    description = "PHP Extension interface to the Excel writing/reading library";
+    license = licenses.php301;
+    homepage = "https://github.com/iliaal/php_excel";
+    maintainers = lib.teams.php.members;
+    broken = lib.versionAtLeast php.version "8.0";
+  };
+}