about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/php-packages/php_excel/default.nix
blob: 8b83f558a53a2c54ed38b392a6eeefd2f41f5a2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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;
}