nixpkgs/nixos/modules/services/web-apps
talyz 2ba7926959
php.buildEnv: Provide a list of currently enabled extensions
Rework withExtensions / buildEnv to handle currently enabled
extensions better and make them compatible with override. They now
accept a function with the named arguments enabled and all, where
enabled is a list of currently enabled extensions and all is the set
of all extensions. This gives us several nice properties:

 - You always get the right version of the list of currently enabled
   extensions

 - Invocations chain

 - It works well with overridden PHP packages - you always get the
   correct versions of extensions

As a contrived example of what's possible, you can add ImageMagick,
then override the version and disable fpm, then disable cgi, and
lastly remove the zip extension like this:

{ pkgs ? (import <nixpkgs>) {} }:
with pkgs;

let
  phpWithImagick = php74.withExtensions ({ all, enabled }: enabled ++ [ all.imagick ]);

  phpWithImagickWithoutFpm743 = phpWithImagick.override {
    version = "7.4.3";
    sha256 = "wVF7pJV4+y3MZMc6Ptx21PxQfEp6xjmYFYTMfTtMbRQ=";
    fpmSupport = false;
  };

  phpWithImagickWithoutFpmZip743 = phpWithImagickWithoutFpm743.withExtensions (
    { enabled, all }:
      lib.filter (e: e != all.zip) enabled);

  phpWithImagickWithoutFpmZipCgi743 = phpWithImagickWithoutFpmZip743.override {
    cgiSupport = false;
  };
in
  phpWithImagickWithoutFpmZipCgi743
2020-04-26 16:43:05 +02:00
..
atlassian
icingaweb2
ihatemoney
codimd.nix nixos/codimd: update useCDN default to false 2020-02-28 14:36:46 +01:00
cryptpad.nix
documize.nix treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
dokuwiki.nix nixos/dokuwiki: change default of aclFile and usersFile 2020-04-18 23:37:19 +02:00
frab.nix
gerrit.nix nixos: add gerrit module 2020-03-26 09:28:42 +01:00
gotify-server.nix
grocy.nix nixos/grocy: init module 2020-02-09 21:55:27 +01:00
grocy.xml nixos/grocy: init module 2020-02-09 21:55:27 +01:00
jirafeau.nix nixos/jirefeau: add services.jirafeau module 2020-02-18 09:37:44 -08:00
limesurvey.nix
matomo-doc.xml
matomo.nix
mattermost.nix Merge pull request #69125 from jslight90/mattermost-5.15 2020-02-12 20:56:00 -08:00
mediawiki.nix
miniflux.nix
moinmoin.nix nixos/moinmoin: fix maintainer reference 2020-04-02 13:49:28 +02:00
moodle.nix
nextcloud.nix php.buildEnv: Provide a list of currently enabled extensions 2020-04-26 16:43:05 +02:00
nextcloud.xml nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
nexus.nix
pgpkeyserver-lite.nix
restya-board.nix
selfoss.nix
shiori.nix
trac.nix
trilium.nix
tt-rss.nix
virtlyst.nix
wordpress.nix treewide: per RFC45, remove more unquoted URLs 2020-04-18 14:04:37 +02:00
youtrack.nix nixos/treewide: Fix incorrectly rendered examples 2020-04-02 07:49:25 +02:00
zabbix.nix