From 30721a280f8c8520b61740b9ba6709115fe704a9 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Wed, 25 Oct 2017 10:26:13 +0200 Subject: [PATCH] phpPackages.couchbase: remove warnings on php startup Removes following warnings: [cb,WARN] (pcbc/ext L:418) igbinary serializer is not found [cb,WARN] (pcbc/ext L:425) zlib compressor is not found --- pkgs/top-level/php-packages.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 5e6192bf6730..960de37332f6 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -33,7 +33,7 @@ let name = "couchbase-${version}"; version = "2.3.4"; - buildInputs = [ pkgs.libcouchbase pcs ]; + buildInputs = [ pkgs.libcouchbase pkgs.zlib igbinary pcs ]; src = pkgs.fetchFromGitHub { owner = "couchbase"; @@ -57,10 +57,31 @@ let if test -r $i/include/libcouchbase/couchbase.h; then LIBCOUCHBASE_DIR=$i AC_MSG_RESULT(found in $i) + @@ -154,6 +154,8 @@ COUCHBASE_FILES=" \ + igbinary_inc_path="$phpincludedir" + elif test -f "$phpincludedir/ext/igbinary/igbinary.h"; then + igbinary_inc_path="$phpincludedir" + + elif test -f "${igbinary.dev}/include/ext/igbinary/igbinary.h"; then + + igbinary_inc_path="${igbinary.dev}/include" + fi + if test "$igbinary_inc_path" = ""; then + AC_MSG_WARN([Cannot find igbinary.h]) '') ]; }; + igbinary = buildPecl { + name = "igbinary-2.0.4"; + + configureFlags = [ "--enable-igbinary" ]; + + makeFlags = [ "phpincludedir=$(dev)/include" ]; + + outputs = [ "out" "dev" ]; + + sha256 = "0a55l4f0bgbf3f6sh34njd14niwagg829gfkvb8n5fs69xqab67d"; + }; + imagick = buildPecl { name = "imagick-3.4.3RC1"; sha256 = "0siyxpszjz6s095s2g2854bhprjq49rf22v6syjiwvndg1pc9fsh";