diff options
author | Elis Hirwing <elis@hirwing.se> | 2020-04-02 22:13:04 +0200 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2020-04-05 16:45:17 +0200 |
commit | a2099156eca905ee0b7a232cb7ec07539eebd72c (patch) | |
tree | 271a1dea88a60f49f88cac39a7307f6bf87540f9 /pkgs/development/interpreters/php | |
parent | a4bc30c802d99bcc5c2f4c7bb84d40da14137c4c (diff) | |
download | nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar.gz nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar.bz2 nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar.lz nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar.xz nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.tar.zst nixlib-a2099156eca905ee0b7a232cb7ec07539eebd72c.zip |
php: split php.packages to php.packages and php.extensions
So now we have only packages for human interaction in php.packages and only extensions in php.extensions. With this php.packages.exts have been merged into the same attribute set as all the other extensions to make it flat and nice. The nextcloud module have been updated to reflect this change as well as the documentation.
Diffstat (limited to 'pkgs/development/interpreters/php')
-rw-r--r-- | pkgs/development/interpreters/php/default.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 7daf32e5127c..514c20708863 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -149,14 +149,21 @@ let generic' = { version, sha256, self, selfWithExtensions, ... }@args: let php = generic (builtins.removeAttrs args [ "self" "selfWithExtensions" ]); - packages = callPackage ../../../top-level/php-packages.nix { + + packages = (callPackage ../../../top-level/php-packages.nix { php = self; phpWithExtensions = selfWithExtensions; - }; + }).packages; + + extensions = (callPackage ../../../top-level/php-packages.nix { + php = self; + phpWithExtensions = selfWithExtensions; + }).extensions; + buildEnv = { exts ? (_: []), extraConfig ? "" }: let getExtName = ext: lib.removePrefix "php-" (builtins.parseDrvName ext.name).name; - extList = exts packages; + extList = exts extensions; # Generate extension load configuration snippets from # exts. This is an attrset suitable for use with @@ -190,7 +197,7 @@ let inherit version; nativeBuildInputs = [ makeWrapper ]; passthru = { - inherit buildEnv packages; + inherit buildEnv packages extensions; }; paths = [ php ]; postBuild = '' @@ -206,7 +213,7 @@ let in php.overrideAttrs (_: { passthru = { - inherit buildEnv packages; + inherit buildEnv packages extensions; }; }); @@ -238,7 +245,7 @@ let }; defaultPhpExtensions = { - exts = pp: with pp.exts; ([ + exts = pp: with pp; ([ bcmath calendar curl ctype dom exif fileinfo filter ftp gd gettext gmp iconv intl json ldap mbstring mysqli mysqlnd opcache openssl pcntl pdo pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql |