Merge pull request #83896 from etu/slim-down-default-php-v3
PHP: Make the default package more sane [v3]
This commit is contained in:
@@ -16,7 +16,19 @@
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
phpConfig = {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
php72-unit = php72.override phpConfig;
|
||||
php73-unit = php73.override phpConfig;
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "1.16.0";
|
||||
pname = "unit";
|
||||
|
||||
@@ -37,8 +49,8 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ ]
|
||||
++ optional withPython2 python2
|
||||
++ optionals withPython3 [ python3 ncurses ]
|
||||
++ optional withPHP72 php72
|
||||
++ optional withPHP73 php73
|
||||
++ optional withPHP72 php72-unit
|
||||
++ optional withPHP73 php73-unit
|
||||
++ optional withPerl528 perl528
|
||||
++ optional withPerl530 perl530
|
||||
++ optional withPerldevel perldevel
|
||||
@@ -59,8 +71,8 @@ stdenv.mkDerivation rec {
|
||||
postConfigure = ''
|
||||
${optionalString withPython2 "./configure python --module=python2 --config=${python2}/bin/python2-config --lib-path=${python2}/lib"}
|
||||
${optionalString withPython3 "./configure python --module=python3 --config=${python3}/bin/python3-config --lib-path=${python3}/lib"}
|
||||
${optionalString withPHP72 "./configure php --module=php72 --config=${php72.dev}/bin/php-config --lib-path=${php72}/lib"}
|
||||
${optionalString withPHP73 "./configure php --module=php73 --config=${php73.dev}/bin/php-config --lib-path=${php73}/lib"}
|
||||
${optionalString withPHP72 "./configure php --module=php72 --config=${php72-unit.dev}/bin/php-config --lib-path=${php72-unit}/lib"}
|
||||
${optionalString withPHP73 "./configure php --module=php73 --config=${php73-unit.dev}/bin/php-config --lib-path=${php73-unit}/lib"}
|
||||
${optionalString withPerl528 "./configure perl --module=perl528 --perl=${perl528}/bin/perl"}
|
||||
${optionalString withPerl530 "./configure perl --module=perl530 --perl=${perl530}/bin/perl"}
|
||||
${optionalString withPerldevel "./configure perl --module=perldev --perl=${perldevel}/bin/perl"}
|
||||
|
||||
Reference in New Issue
Block a user