php-unit: Drop the declaration of the php-unit attributes since they aren't used
This commit is contained in:
parent
be7bf5a18d
commit
a5f77d6ea2
|
@ -1,8 +1,8 @@
|
|||
{ stdenv, fetchFromGitHub, which
|
||||
, withPython2 ? false, python2
|
||||
, withPython3 ? true, python3, ncurses
|
||||
, withPHP72 ? false, php72base
|
||||
, withPHP73 ? true, php73base
|
||||
, withPHP72 ? false, php72
|
||||
, withPHP73 ? true, php73
|
||||
, withPerl528 ? false, perl528
|
||||
, withPerl530 ? true, perl530
|
||||
, withPerldevel ? false, perldevel
|
||||
|
@ -26,8 +26,8 @@ let
|
|||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
php72-unit = php72base.override phpConfig;
|
||||
php73-unit = php73base.override phpConfig;
|
||||
php72-unit = php72.override phpConfig;
|
||||
php73-unit = php73.override phpConfig;
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "1.16.0";
|
||||
pname = "unit";
|
||||
|
@ -49,8 +49,8 @@ in 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
|
||||
|
@ -71,8 +71,8 @@ in 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"}
|
||||
|
|
|
@ -339,6 +339,36 @@ mapAliases ({
|
|||
php73Packages-embed = phpPackages-embed;
|
||||
php72Packages-embed = phpPackages-embed;
|
||||
|
||||
php-unit = throw ''
|
||||
php*-unit has been dropped, you can build the same package by using
|
||||
something similar with this following snippet:
|
||||
(php74.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false; })
|
||||
''; # added 2020-04-01
|
||||
php72-unit = php-unit; # added 2020-04-01
|
||||
php73-unit = php-unit; # added 2020-04-01
|
||||
php74-unit = php-unit; # added 2020-04-01
|
||||
|
||||
phpPackages-unit = throw ''
|
||||
php*Packages-unit has been dropped, you can build the same package by using
|
||||
something similar with this following snippet:
|
||||
(php74.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false; }).packages
|
||||
''; # added 2020-04-01
|
||||
php74Packages-unit = phpPackages-unit;
|
||||
php73Packages-unit = phpPackages-unit;
|
||||
php72Packages-unit = phpPackages-unit;
|
||||
|
||||
pidgin-with-plugins = pidgin; # added 2016-06
|
||||
pidginlatex = pidgin-latex; # added 2018-01-08
|
||||
pidginlatexSF = pidgin-latex; # added 2014-11-02
|
||||
|
|
|
@ -9385,53 +9385,10 @@ in
|
|||
php = php74base;
|
||||
});
|
||||
|
||||
phpPackages-unit = php74Packages-unit;
|
||||
|
||||
php72Packages-unit = recurseIntoAttrs (callPackage ./php-packages.nix {
|
||||
php = php72-unit;
|
||||
});
|
||||
|
||||
php73Packages-unit = recurseIntoAttrs (callPackage ./php-packages.nix {
|
||||
php = php73-unit;
|
||||
});
|
||||
|
||||
php74Packages-unit = recurseIntoAttrs (callPackage ./php-packages.nix {
|
||||
php = php74-unit;
|
||||
});
|
||||
|
||||
inherit (callPackages ../development/interpreters/php {
|
||||
stdenv = if stdenv.cc.isClang then llvmPackages_6.stdenv else stdenv;
|
||||
}) php74 php73 php72 php74base php73base php72base;
|
||||
|
||||
php-unit = php74-unit;
|
||||
|
||||
php72-unit = php72.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
php73-unit = php73.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
php74-unit = php74.override {
|
||||
config.php.embed = true;
|
||||
config.php.apxs2 = false;
|
||||
config.php.systemd = false;
|
||||
config.php.phpdbg = false;
|
||||
config.php.cgi = false;
|
||||
config.php.fpm = false;
|
||||
};
|
||||
|
||||
picoc = callPackage ../development/interpreters/picoc {};
|
||||
|
||||
picolisp = callPackage ../development/interpreters/picolisp {};
|
||||
|
@ -15591,10 +15548,7 @@ in
|
|||
|
||||
neard = callPackage ../servers/neard { };
|
||||
|
||||
unit = callPackage ../servers/http/unit {
|
||||
php72 = php72-unit;
|
||||
php73 = php73-unit;
|
||||
};
|
||||
unit = callPackage ../servers/http/unit { };
|
||||
|
||||
nginx = nginxStable;
|
||||
|
||||
|
|
Loading…
Reference in New Issue