forked from mirrors/nixpkgs
phpPackages.memcached: fix build with php73
This commit is contained in:
parent
43b2734f53
commit
72b3ceaa2f
|
@ -114,7 +114,9 @@ let
|
|||
buildInputs = [ (if isPhp73 then pkgs.pcre2 else pkgs.pcre) ];
|
||||
};
|
||||
|
||||
memcached = buildPecl rec {
|
||||
memcached = if isPhp73 then memcached73 else memcached7;
|
||||
|
||||
memcached7 = assert !isPhp73; buildPecl rec {
|
||||
name = "memcached-php7";
|
||||
|
||||
src = fetchgit {
|
||||
|
@ -132,6 +134,24 @@ let
|
|||
buildInputs = with pkgs; [ cyrus_sasl zlib ];
|
||||
};
|
||||
|
||||
memcached73 = assert isPhp73; buildPecl rec {
|
||||
name = "memcached-php73";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/php-memcached-dev/php-memcached";
|
||||
rev = "6d8f5d524f35e72422b9e81319b96f23af02adcc";
|
||||
sha256 = "1s1d5r3n2h9zys8sqvv52fld6jy21ki7cl0gbbvd9dixqc0lf1jh";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--with-zlib-dir=${pkgs.zlib.dev}"
|
||||
"--with-libmemcached-dir=${pkgs.libmemcached}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = with pkgs; [ cyrus_sasl zlib ];
|
||||
};
|
||||
|
||||
oci8 = buildPecl rec {
|
||||
name = "oci8-2.1.8";
|
||||
sha256 = "1bp6fss2f2qmd5bdk7x22j8vx5qivrdhz4x7csf29vjgj6gvchxy";
|
||||
|
|
Loading…
Reference in a new issue