@ -1,25 +1,28 @@
{ stdenv , lib , pkgs , fetchgit , php , autoconf , pkgconfig , re2c , gettext
, bzip2 , curl , libxml2 , openssl , gmp , icu , oniguruma , libsodium , html-tidy
, libzip , zlib , pcre , pcre2 , libxslt , aspell , openldap , cyrus_sasl , uwimap
, pam , libiconv , enchant1 , libXpm , gd , libwebp , libjpeg , libpng , freetype
, libffi , freetds , postgresql , sqlite , net-snmp , unixODBC , libedit , readline
{ stdenv , lib , pkgs , fetchgit , php , phpWithExtensions , autoconf , pkgconfig , re2c
, gettext , bzip2 , curl , libxml2 , openssl , gmp , icu , oniguruma , libsodium
, html-tidy , libzip , zlib , pcre , pcre2 , libxslt , aspell , openldap , cyrus_sasl
, uwimap , pam , libiconv , enchant1 , libXpm , gd , libwebp , libjpeg , libpng
, freetype , libffi , freetds , postgresql , sqlite , net-snmp , unixODBC , libedit
, readline , rsync
} :
let
self = with self ; {
buildPecl = import ../build-support/build-pecl.nix {
inherit php ;
inherit ( pkgs ) stdenv autoreconfHook fetchurl re2c ;
} ;
buildPecl = import ../build-support/build-pecl.nix {
inherit php lib ;
inherit ( pkgs ) stdenv autoreconfHook fetchurl re2c ;
} ;
# Wrap mkDerivation to prepend pname with "php-" to make names consistent
# with how buildPecl does it and make the file easier to overview.
mkDerivation = { pname , . . . } @ args : pkgs . stdenv . mkDerivation ( args // {
pname = " p h p - ${ pname } " ;
} ) ;
# Wrap mkDerivation to prepend pname with "php-" to make names consistent
# with how buildPecl does it and make the file easier to overview.
mkDerivation = { pname , . . . } @ args : pkgs . stdenv . mkDerivation ( args // {
pname = " p h p - ${ pname } " ;
} ) ;
isPhp73 = pkgs . lib . versionAtLeast php . version " 7 . 3 " ;
isPhp74 = pkgs . lib . versionAtLeast php . version " 7 . 4 " ;
in
{
inherit buildPecl ;
apcu = buildPecl {
version = " 5 . 1 . 1 8 " ;
@ -41,7 +44,10 @@ let
sha256 = " 0 m a 0 0 s y h k 2 p s 9 k 9 p 0 2 j z 7 r i i 6 x 3 i 2 p 9 8 6 i l 2 3 7 0 3 z z 5 n p d 6 y 9 n 2 0 " ;
buildInputs = [ apcu ( if isPhp73 then pkgs . pcre2 else pkgs . pcre ) ] ;
buildInputs = [
php . packages . apcu
( if isPhp73 then pkgs . pcre2 else pkgs . pcre )
] ;
} ;
ast = buildPecl {
@ -111,7 +117,12 @@ let
version = " 2 . 6 . 1 " ;
pname = " c o u c h b a s e " ;
buildInputs = [ pkgs . libcouchbase pkgs . zlib igbinary pcs ] ;
buildInputs = [
pkgs . libcouchbase
pkgs . zlib
php . packages . igbinary
php . packages . pcs
] ;
src = pkgs . fetchFromGitHub {
owner = " c o u c h b a s e " ;
@ -139,8 +150,8 @@ let
igbinary_inc_path = " $ p h p i n c l u d e d i r "
elif test - f " $ p h p i n c l u d e d i r / e x t / i g b i n a r y / i g b i n a r y . h " ; then
igbinary_inc_path = " $ p h p i n c l u d e d i r "
+ elif test - f " ${ igbinary . dev } / i n c l u d e / e x t / i g b i n a r y / i g b i n a r y . h " ; then
+ igbinary_inc_path = " ${ igbinary . dev } / i n c l u d e "
+ elif test - f " ${ php . packages . igbinary . dev } / i n c l u d e / e x t / i g b i n a r y / i g b i n a r y . h " ; then
+ igbinary_inc_path = " ${ php . packages . igbinary . dev } / i n c l u d e "
fi
if test " $ i g b i n a r y _ i n c _ p a t h " = " " ; then
AC_MSG_WARN ( [ Cannot find igbinary . h ] )
@ -353,7 +364,11 @@ let
sha256 = " 1 6 n v 8 y y k 2 z 3 l 2 1 3 d g 0 6 7 l 6 d i 4 p i g g 5 r d 8 y s w r 5 x g d 1 8 j w b y s 2 v n w " ;
} ;
buildInputs = [ pkgs . makeWrapper composer box ] ;
buildInputs = [
pkgs . makeWrapper
php . packages . composer
php . packages . box
] ;
buildPhase = ''
composer dump-autoload
@ -1024,4 +1039,4 @@ let
# Produce the final attribute set of all extensions defined.
in builtins . listToAttrs namedExtensions ;
} ; in self
}