3
0
Fork 0
forked from mirrors/nixpkgs

phpPackages.memcached: fix build with php73

This commit is contained in:
Izorkin 2018-12-10 21:40:50 +03:00 committed by Franz Pletz
parent 43b2734f53
commit 72b3ceaa2f
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -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";