Skip to content

Commit

Permalink
phpPackages.couchbase: remove warnings on php startup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gerschtli authored and fpletz committed Oct 25, 2017
1 parent 4244ca7 commit 30721a2
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion pkgs/top-level/php-packages.nix
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit 30721a2

Please sign in to comment.