php53: add imap option
This commit is contained in:
parent
9007e57f28
commit
1f9005a3f6
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
|
{ stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
|
||||||
, apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
|
, apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
|
||||||
, openssl, pkgconfig, sqlite, config, libjpeg, libpng, freetype, libxslt
|
, openssl, pkgconfig, sqlite, config, libjpeg, libpng, freetype, libxslt
|
||||||
, libmcrypt, bzip2, icu, libssh2, makeWrapper, libiconvOrEmpty, libiconv }:
|
, libmcrypt, bzip2, icu, libssh2, makeWrapper, libiconvOrEmpty, libiconv, uwimap
|
||||||
|
, pam }:
|
||||||
|
|
||||||
let
|
let
|
||||||
libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
|
libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
|
||||||
@ -132,6 +133,11 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||||||
buildInputs = [gettext];
|
buildInputs = [gettext];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imap = {
|
||||||
|
configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" ];
|
||||||
|
buildInputs = [ uwimap openssl pam ];
|
||||||
|
};
|
||||||
|
|
||||||
intl = {
|
intl = {
|
||||||
configureFlags = ["--enable-intl"];
|
configureFlags = ["--enable-intl"];
|
||||||
buildInputs = [icu];
|
buildInputs = [icu];
|
||||||
@ -163,18 +169,6 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||||||
ftp = {
|
ftp = {
|
||||||
configureFlags = ["--enable-ftp"];
|
configureFlags = ["--enable-ftp"];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
php is build within this derivation in order to add the xdebug lines to the php.ini.
|
|
||||||
So both Apache and command line php both use xdebug without having to configure anything.
|
|
||||||
Xdebug could be put in its own derivation.
|
|
||||||
* /
|
|
||||||
meta = {
|
|
||||||
description = "debugging support for PHP";
|
|
||||||
homepage = http://xdebug.org;
|
|
||||||
license = "based on the PHP license - as is";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cfg = {
|
cfg = {
|
||||||
@ -186,6 +180,7 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||||||
ftpSupport = config.php.ftp or true;
|
ftpSupport = config.php.ftp or true;
|
||||||
gdSupport = config.php.gd or true;
|
gdSupport = config.php.gd or true;
|
||||||
gettextSupport = config.php.gettext or true;
|
gettextSupport = config.php.gettext or true;
|
||||||
|
imapSupport = config.php.imap or false;
|
||||||
intlSupport = config.php.intl or true;
|
intlSupport = config.php.intl or true;
|
||||||
libxml2Support = config.php.libxml2 or true;
|
libxml2Support = config.php.libxml2 or true;
|
||||||
mbstringSupport = config.php.mbstring or true;
|
mbstringSupport = config.php.mbstring or true;
|
||||||
|
@ -8,7 +8,9 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
|
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = "lnp"; # Linux with PAM modules
|
makeFlags = "lnp" # Linux with PAM modules
|
||||||
|
# -fPIC is required to compile php with imap on x86_64 systems
|
||||||
|
+ stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC";
|
||||||
|
|
||||||
buildInputs = [ pam openssl ];
|
buildInputs = [ pam openssl ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user