phpExtensions.php_excel: Move to separate directory

This commit is contained in:
Elis Hirwing 2020-10-11 19:32:05 +02:00
parent fd6db7224b
commit d5ea4254a4
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 25 additions and 16 deletions

View File

@ -0,0 +1,24 @@
{ buildPecl, fetchurl, lib, pkgs }:
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 = with pkgs; [ libxl ];
configureFlags = [
"--with-excel"
"--with-libxl-incdir=${pkgs.libxl}/include_c"
"--with-libxl-libdir=${pkgs.libxl}/lib"
];
meta.maintainers = lib.teams.php.members;
}

View File

@ -122,22 +122,7 @@ in
pdo_sqlsrv = callPackage ../development/php-packages/pdo_sqlsrv { };
php_excel = buildPecl rec {
version = "1.0.2";
pname = "php_excel";
phpVersion = "php7";
buildInputs = [ pkgs.libxl ];
src = pkgs.fetchurl {
url = "https://github.com/iliaal/php_excel/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" ];
meta.maintainers = lib.teams.php.members;
};
php_excel = callPackage ../development/php-packages/php_excel { };
pinba = let
version = if isPhp73 then "1.1.2-dev" else "1.1.1";