diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-12-22 22:39:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 22:39:29 +0100 |
commit | 3dfcc7e3a57268d06754b44bf89ff0b728df8de4 (patch) | |
tree | b46b548d670f8d00510810675ba3c277fb3b05b4 /pkgs/top-level | |
parent | d3a8c46fa838c754214ddb3ce5aad0bfd29ac37f (diff) | |
parent | b2594c71c248b78b8526a62f43ad74151a31ac3a (diff) |
Merge pull request #107044 from jtojnar/overridable-php-packages
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index d5bebb9bd847..cc8ba346ae56 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, pkgs, fetchgit, php, autoconf, pkgconfig, re2c +{ stdenv, lib, pkgs, fetchgit, phpPackage, autoconf, pkgconfig, re2c , gettext, bzip2, curl, libxml2, openssl, gmp, icu64, oniguruma, libsodium , html-tidy, libzip, zlib, pcre, pcre2, libxslt, aspell, openldap, cyrus_sasl , uwimap, pam, libiconv, enchant1, libXpm, gd, libwebp, libjpeg, libpng @@ -6,7 +6,7 @@ , readline, rsync, fetchpatch, valgrind }: -let +lib.makeScope pkgs.newScope (self: with self; { buildPecl = import ../build-support/build-pecl.nix { php = php.unwrapped; inherit lib; @@ -21,15 +21,10 @@ let pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre; - callPackage = pkgs.newScope { - inherit mkDerivation php buildPecl pcre'; - }; -in -{ - inherit buildPecl; + php = phpPackage; # This is a set of interactive tools based on PHP. - packages = { + tools = { box = callPackage ../development/php-packages/box { }; composer = callPackage ../development/php-packages/composer { }; @@ -550,4 +545,4 @@ in # Produce the final attribute set of all extensions defined. in builtins.listToAttrs namedExtensions); -} +}) |