48 lib.makeScope pkgs.newScope (self: let
49 inherit (self) buildPecl callPackage mkExtension php;
51 builders = import ../build-support/php/builders {
52 inherit callPackages callPackage buildPecl;
55 buildPecl = callPackage ../build-support/php/build-pecl.nix {
59 inherit (builders.v1) buildComposerProject buildComposerWithPlugin composerHooks mkComposerRepository;
61 # Next version of the builder
62 buildComposerProject2 = builders.v2.buildComposerProject;
63 composerHooks2 = builders.v2.composerHooks;
64 mkComposerVendor = builders.v2.mkComposerVendor;
66 # Wrap mkDerivation to prepend pname with "php-" to make names consistent
67 # with how buildPecl does it and make the file easier to overview.
68 mkDerivation = origArgs:
70 args = lib.fix (lib.extends
72 pname = "php-${previousAttrs.pname}";
73 passthru = (previousAttrs.passthru or { }) // {
74 updateScript = nix-update-script { };
76 meta = (previousAttrs.meta or { }) // {
77 mainProgram = previousAttrs.meta.mainProgram or previousAttrs.pname;
80 (if lib.isFunction origArgs then origArgs else (_: origArgs))
83 pkgs.stdenv.mkDerivation args;
85 # Function to build an extension which is shipped as part of the php
86 # source, based on the php version.
88 # Name passed is the name of the extension and is automatically used
89 # to add the configureFlag "--enable-${name}", which can be overridden.
91 # Build inputs is used for extra deps that may be needed. And zendExtension
92 # will mark the extension as a zend extension or not.
93 mkExtension = lib.makeOverridable
95 , configureFlags ? [ "--enable-${extName}" ]
99 , zendExtension ? false
103 }@args: stdenv.mkDerivation ((builtins.removeAttrs args [ "name" ]) // {
104 pname = "php-${name}";
105 extensionName = extName;
107 outputs = [ "out" "dev" ];
109 inherit (php.unwrapped) version src;
111 enableParallelBuilding = true;
113 nativeBuildInputs = [
121 inherit configureFlags internalDeps buildInputs zendExtension doCheck;
123 preConfigurePhases = [
125 "cdToExtensionRootPhase"
129 if [ -f "scripts/dev/genfiles" ]; then
130 ./scripts/dev/genfiles
134 cdToExtensionRootPhase = ''
135 # Go to extension source root.
140 nullglobRestore=$(shopt -p nullglob)
141 shopt -u nullglob # To make ?-globbing work
143 # Some extensions have a config0.m4 or config9.m4
144 if [ -f config?.m4 ]; then
145 mv config?.m4 config.m4
153 ${lib.concatMapStringsSep
155 (dep: "mkdir -p ext; ln -s ${dep.dev}/include ext/${dep.extensionName}")
163 NO_INTERACTION=yes SKIP_PERF_SENSITIVE=yes SKIP_ONLINE_TESTS=yes make test
170 mkdir -p $out/lib/php/extensions
171 cp modules/${extName}.so $out/lib/php/extensions/${extName}.so
172 mkdir -p $dev/include
173 ${rsync}/bin/rsync -r --filter="+ */" \
183 description = "PHP upstream extension: ${name}";
184 inherit (php.meta) maintainers homepage license platforms;
185 } // args.meta or { };
190 # This is a set of interactive tools based on PHP.
192 box = callPackage ../development/php-packages/box { };
194 castor = callPackage ../development/php-packages/castor { };
196 composer = callPackage ../development/php-packages/composer { };
198 composer-local-repo-plugin = callPackage ../development/php-packages/composer-local-repo-plugin { };
200 cyclonedx-php-composer = callPackage ../development/php-packages/cyclonedx-php-composer { };
202 deployer = callPackage ../development/php-packages/deployer { };
204 grumphp = callPackage ../development/php-packages/grumphp { };
206 phan = callPackage ../development/php-packages/phan { };
208 phing = callPackage ../development/php-packages/phing { };
210 phive = callPackage ../development/php-packages/phive { };
212 php-codesniffer = callPackage ../development/php-packages/php-codesniffer { };
214 php-cs-fixer = callPackage ../development/php-packages/php-cs-fixer { };
216 php-parallel-lint = callPackage ../development/php-packages/php-parallel-lint { };
218 phpinsights = callPackage ../development/php-packages/phpinsights { };
220 phpmd = callPackage ../development/php-packages/phpmd { };
222 phpspy = callPackage ../development/php-packages/phpspy { };
224 phpstan = callPackage ../development/php-packages/phpstan { };
226 psalm = callPackage ../development/php-packages/psalm { };
228 psysh = callPackage ../development/php-packages/psysh { };
229 } // lib.optionalAttrs config.allowAliases {
230 phpcbf = throw "`phpcbf` is now deprecated, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`.";
231 phpcs = throw "`phpcs` is now deprecated, use `php-codesniffer` instead which contains both `phpcs` and `phpcbf`.";
234 # This is a set of PHP extensions meant to be used in php.buildEnv
235 # or php.withExtensions to extend the functionality of the PHP
237 # The extensions attributes is composed of three sections:
238 # 1. The contrib conditional extensions, which are only available on specific PHP versions
239 # 2. The contrib extensions available
240 # 3. The core extensions
244 amqp = callPackage ../development/php-packages/amqp { };
246 apcu = callPackage ../development/php-packages/apcu { };
248 ast = callPackage ../development/php-packages/ast { };
250 blackfire = callPackage ../development/tools/misc/blackfire/php-probe.nix { };
252 couchbase = callPackage ../development/php-packages/couchbase { };
254 datadog_trace = callPackage ../development/php-packages/datadog_trace {
255 buildPecl = buildPecl.override {
256 stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
258 inherit (pkgs) darwin;
261 ds = callPackage ../development/php-packages/ds { };
263 event = callPackage ../development/php-packages/event { };
265 gnupg = callPackage ../development/php-packages/gnupg { };
267 grpc = callPackage ../development/php-packages/grpc { };
269 igbinary = callPackage ../development/php-packages/igbinary { };
271 imagick = callPackage ../development/php-packages/imagick { };
273 # Shadowed by built-in version on PHP < 8.3.
274 imap = callPackage ../development/php-packages/imap { };
276 inotify = callPackage ../development/php-packages/inotify { };
278 ioncube-loader = callPackage ../development/php-packages/ioncube-loader { };
280 mailparse = callPackage ../development/php-packages/mailparse { };
282 maxminddb = callPackage ../development/php-packages/maxminddb { };
284 memcache = callPackage ../development/php-packages/memcache { };
286 memcached = callPackage ../development/php-packages/memcached { };
288 meminfo = callPackage ../development/php-packages/meminfo { };
290 memprof = callPackage ../development/php-packages/memprof { };
292 mongodb = callPackage ../development/php-packages/mongodb {
293 inherit (pkgs) darwin;
296 msgpack = callPackage ../development/php-packages/msgpack { };
298 oci8 = callPackage ../development/php-packages/oci8 { };
300 opentelemetry = callPackage ../development/php-packages/opentelemetry { };
302 openswoole = callPackage ../development/php-packages/openswoole { };
304 parallel = callPackage ../development/php-packages/parallel { };
306 pdlib = callPackage ../development/php-packages/pdlib { };
308 pcov = callPackage ../development/php-packages/pcov { };
310 pdo_oci = buildPecl rec {
311 inherit (php.unwrapped) src version;
314 sourceRoot = "php-${version}/ext/pdo_oci";
316 buildInputs = [ pkgs.oracle-instantclient ];
317 configureFlags = [ "--with-pdo-oci=instantclient,${pkgs.oracle-instantclient.lib}/lib" ];
319 internalDeps = [ php.extensions.pdo ];
322 sed -i -e 's|OCISDKMANINC=`.*$|OCISDKMANINC="${pkgs.oracle-instantclient.dev}/include"|' config.m4
325 meta.maintainers = lib.teams.php.members;
328 pdo_sqlsrv = callPackage ../development/php-packages/pdo_sqlsrv { };
330 phalcon = callPackage ../development/php-packages/phalcon { };
332 pinba = callPackage ../development/php-packages/pinba { };
334 protobuf = callPackage ../development/php-packages/protobuf { };
336 pspell = callPackage ../development/php-packages/pspell { };
338 rdkafka = callPackage ../development/php-packages/rdkafka { };
340 redis = callPackage ../development/php-packages/redis { };
342 relay = callPackage ../development/php-packages/relay { };
344 rrd = callPackage ../development/php-packages/rrd { };
346 smbclient = callPackage ../development/php-packages/smbclient { };
348 snuffleupagus = callPackage ../development/php-packages/snuffleupagus {
349 inherit (pkgs) darwin;
352 spx = callPackage ../development/php-packages/spx { };
354 sqlsrv = callPackage ../development/php-packages/sqlsrv { };
356 ssh2 = callPackage ../development/php-packages/ssh2 { };
358 swoole = callPackage ../development/php-packages/swoole { };
360 uv = callPackage ../development/php-packages/uv { };
362 vld = callPackage ../development/php-packages/vld { };
364 xdebug = callPackage ../development/php-packages/xdebug { };
366 yaml = callPackage ../development/php-packages/yaml { };
368 zstd = callPackage ../development/php-packages/zstd { };
369 } // lib.optionalAttrs config.allowAliases {
370 php-spx = throw "php-spx is deprecated, use spx instead";
374 # This list contains build instructions for different modules that one may
377 # These will be passed as arguments to mkExtension above.
380 { name = "bz2"; buildInputs = [ bzip2 ]; configureFlags = [ "--with-bz2=${bzip2.dev}" ]; }
381 { name = "calendar"; }
385 buildInputs = [ curl ];
386 configureFlags = [ "--with-curl=${curl.dev}" ];
392 buildInputs = [ libxml2 ];
396 # Add a PHP lower version bound constraint to avoid applying the patch on older PHP versions.
397 patches = lib.optionals (lib.versions.majorMinor php.version == "8.1") [
398 # Fix tests with libxml 2.12
399 # Part of 8.3.1RC1+, 8.2.14RC1+
401 url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
402 hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
407 ] ++ lib.optionals (lib.versions.majorMinor php.version == "8.1") [
408 # Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
410 url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
411 hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
413 # Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
415 url = "https://github.com/php/php-src/commit/4fe821311cafb18ca8bdf20b9d796c48a13ba552.patch";
416 hash = "sha256-YC3I0BQi3o3+VmRu/UqpqPpaSC+ekPqzbORTHftbPvY=";
422 buildInputs = [ enchant2 ];
423 configureFlags = [ "--with-enchant" ];
426 { name = "exif"; doCheck = false; }
427 { name = "ffi"; buildInputs = [ libffi ]; }
430 buildInputs = [ pcre2 ];
432 { name = "filter"; buildInputs = [ pcre2 ]; }
433 { name = "ftp"; buildInputs = [ openssl ]; }
436 buildInputs = [ zlib gd ];
439 "--with-external-gd=${gd.dev}"
440 "--enable-gd-jis-conv"
446 buildInputs = [ gettext ];
447 postPhpize = ''substituteInPlace configure --replace-fail 'as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5' ':' '';
448 configureFlags = [ "--with-gettext=${gettext}" ];
452 buildInputs = [ gmp ];
453 configureFlags = [ "--with-gmp=${gmp.dev}" ];
457 buildInputs = [ libiconv ];
458 configureFlags = [ "--with-iconv" ];
459 # Some other extensions support separate libdirs, but iconv does not. This causes problems with detecting
460 # Darwin’s libiconv because it has separate outputs. Adding `-liconv` works around the issue.
461 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { NIX_LDFLAGS = "-liconv"; };
462 doCheck = stdenv.hostPlatform.isLinux;
466 buildInputs = [ icu73 ];
470 buildInputs = [ openldap cyrus_sasl ];
473 "LDAP_DIR=${openldap.dev}"
474 "LDAP_INCDIR=${openldap.dev}/include"
475 "LDAP_LIBDIR=${openldap.out}/lib"
476 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
477 "--with-ldap-sasl=${cyrus_sasl.dev}"
483 buildInputs = [ oniguruma pcre2 ];
488 internalDeps = [ php.extensions.mysqlnd ];
489 configureFlags = [ "--with-mysqli=mysqlnd" "--with-mysql-sock=/run/mysqld/mysqld.sock" ];
494 buildInputs = [ zlib openssl ];
495 # The configure script doesn't correctly add library link
496 # flags, so we add them to the variable used by the Makefile
498 MYSQLND_SHARED_LIBADD = "-lz -lssl -lcrypto";
499 # The configure script builds a config.h which is never
500 # included. Let's include it in the main header file
501 # included by all .c-files.
503 (pkgs.writeText "mysqlnd_config.patch" ''
504 --- a/ext/mysqlnd/mysqlnd.h
505 +++ b/ext/mysqlnd/mysqlnd.h
507 +#ifdef HAVE_CONFIG_H
511 +----------------------------------------------------------------------+
512 | Copyright (c) The PHP Group |
518 buildInputs = [ pcre2 ] ++
520 (!stdenv.hostPlatform.isDarwin && lib.meta.availableOn stdenv.hostPlatform valgrind)
522 configureFlags = lib.optional php.ztsSupport "--disable-opcache-jit";
523 zendExtension = true;
524 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
525 # Tests are flaky on darwin
526 rm ext/opcache/tests/blacklist.phpt
527 rm ext/opcache/tests/bug66338.phpt
528 rm ext/opcache/tests/bug78106.phpt
529 rm ext/opcache/tests/issue0115.phpt
530 rm ext/opcache/tests/issue0149.phpt
531 rm ext/opcache/tests/revalidate_path_01.phpt
533 # Tests launch the builtin webserver.
534 __darwinAllowLocalNetworking = true;
538 buildInputs = [ openssl ];
539 configureFlags = [ "--with-openssl" ];
542 # This provides a legacy OpenSSL PHP extension
543 # For situations where OpenSSL 3 do not support a set of features
544 # without a specific openssl.cnf file
546 name = "openssl-legacy";
548 buildInputs = [ openssl_1_1 ];
549 configureFlags = [ "--with-openssl" ];
553 { name = "pdo"; doCheck = false; }
556 internalDeps = [ php.extensions.pdo ];
557 configureFlags = [ "--with-pdo-dblib=${freetds}" ];
558 meta.broken = stdenv.hostPlatform.isDarwin;
563 internalDeps = with php.extensions; [ pdo mysqlnd ];
564 configureFlags = [ "--with-pdo-mysql=mysqlnd" "PHP_MYSQL_SOCK=/run/mysqld/mysqld.sock" ];
569 internalDeps = [ php.extensions.pdo ];
570 buildInputs = [ unixODBC ];
571 configureFlags = [ "--with-pdo-odbc=unixODBC,${unixODBC}" ];
576 internalDeps = [ php.extensions.pdo ];
577 configureFlags = [ "--with-pdo-pgsql=${lib.getDev postgresql}" ];
582 internalDeps = [ php.extensions.pdo ];
583 buildInputs = [ sqlite ];
584 configureFlags = [ "--with-pdo-sqlite=${sqlite.dev}" ];
589 buildInputs = [ pcre2 ];
590 configureFlags = [ "--with-pgsql=${lib.getDev postgresql}" ];
593 { name = "posix"; doCheck = false; }
600 "--with-readline=${readline.dev}"
603 # Fix `--with-readline` option not being available.
604 # `PHP_ALWAYS_SHARED` generated by phpize enables all options
605 # without the possibility to override them. But when `--with-libedit`
606 # is enabled, `--with-readline` is not registered.
608 AC_DEFUN([PHP_ALWAYS_SHARED],[
609 test "[$]$1" != "no" && ext_shared=yes
611 ' | cat - ext/readline/config.m4 > ext/readline/config.m4.tmp
612 mv ext/readline/config.m4{.tmp,}
622 buildInputs = [ libxml2 pcre2 ];
626 patches = lib.optionals (lib.versions.majorMinor php.version == "8.1") [
627 # Fix tests with libxml2 2.12
629 url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
630 hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
635 # Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
636 # Required for libxml2 2.13 compatibility patch.
638 url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
639 hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
641 # Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
643 url = "https://github.com/php/php-src/commit/4fe821311cafb18ca8bdf20b9d796c48a13ba552.patch";
644 hash = "sha256-YC3I0BQi3o3+VmRu/UqpqPpaSC+ekPqzbORTHftbPvY=";
650 buildInputs = [ net-snmp openssl ];
651 configureFlags = [ "--with-snmp" ];
656 buildInputs = [ libxml2 ];
660 # Some tests are causing issues in the Darwin sandbox with issues
662 # Unknown: php_network_getaddresses: getaddrinfo for localhost failed: nodename nor servname provided
663 doCheck = !stdenv.hostPlatform.isDarwin && lib.versionOlder php.version "8.4";
664 internalDeps = [ php.extensions.session ];
665 patches = lib.optionals (lib.versions.majorMinor php.version == "8.1") [
666 # Fix tests with libxml2 2.12
668 url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
669 hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
674 # Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
675 # Required for libxml2 2.13 compatibility patch.
677 url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
678 hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
680 # Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
682 url = "https://github.com/php/php-src/commit/4fe821311cafb18ca8bdf20b9d796c48a13ba552.patch";
683 hash = "sha256-YC3I0BQi3o3+VmRu/UqpqPpaSC+ekPqzbORTHftbPvY=";
686 ++ lib.optionals (lib.versionAtLeast php.version "8.3") [
687 # https://github.com/php/php-src/pull/16733 (fix soap test)
689 url = "https://github.com/php/php-src/commit/5c308d61db104854e4ff84ab123e3ea56e1b4046.patch";
690 hash = "sha256-xQ4Sg4kL0cgHYauRW2AzGgFXfcqtxeRVhI9zNh7CsoM=";
698 { name = "sodium"; buildInputs = [ libsodium ]; }
701 buildInputs = [ sqlite ];
703 # The `sqlite3_bind_bug68849.phpt` test is currently broken for i686 Linux systems since sqlite 3.43, cf.:
704 # - https://github.com/php/php-src/issues/12076
705 # - https://www.sqlite.org/forum/forumpost/abbb95376ec6cd5f
706 patches = lib.optionals (stdenv.hostPlatform.isi686 && stdenv.hostPlatform.isLinux) [
707 ../development/interpreters/php/skip-sqlite3_bind_bug68849.phpt.patch
710 { name = "sysvmsg"; }
711 { name = "sysvsem"; }
712 { name = "sysvshm"; }
713 { name = "tidy"; configureFlags = [ "--with-tidy=${html-tidy}" ]; doCheck = false; }
716 patches = [ ../development/interpreters/php/fix-tokenizer-php81.patch ];
720 buildInputs = [ libxml2 ];
725 patches = lib.optionals (lib.versions.majorMinor php.version == "8.1") [
726 # Fix tests with libxml2 2.12
728 url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
729 hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
734 # Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
735 # Required for libxml2 2.13 compatibility patch.
737 url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
738 hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
740 # Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
742 url = "https://github.com/php/php-src/commit/4fe821311cafb18ca8bdf20b9d796c48a13ba552.patch";
743 hash = "sha256-YC3I0BQi3o3+VmRu/UqpqPpaSC+ekPqzbORTHftbPvY=";
749 buildInputs = [ libxml2 ];
750 internalDeps = [ php.extensions.dom ];
751 env.NIX_CFLAGS_COMPILE = toString [ "-I../.." "-DHAVE_DOM" ];
759 buildInputs = [ libxml2 ];
763 patches = lib.optionals (lib.versions.majorMinor php.version == "8.1") [
764 # Fix tests with libxml2 2.12
766 url = "https://github.com/php/php-src/commit/061058a9b1bbd90d27d97d79aebcf2b5029767b0.patch";
767 hash = "sha256-0hOlAG+pOYp/gUU0MUMZvzWpgr0ncJi5GB8IeNxxyEU=";
772 # Backport of PHP_LIBXML_IGNORE_DEPRECATIONS_START and PHP_LIBXML_IGNORE_DEPRECATIONS_END
773 # Required for libxml2 2.13 compatibility patch.
775 url = "https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664.patch";
776 hash = "sha256-w0hyYUgbRGpvIBfWeDTSEUGpiJdyrtNjKy+Fn1vyAO0=";
778 # Fix build with libxml2 2.13+. Has to be applied after libxml2 2.12 patch.
780 url = "https://github.com/php/php-src/commit/4fe821311cafb18ca8bdf20b9d796c48a13ba552.patch";
781 hash = "sha256-YC3I0BQi3o3+VmRu/UqpqPpaSC+ekPqzbORTHftbPvY=";
787 buildInputs = [ libxslt libxml2 ];
788 internalDeps = [ php.extensions.dom ];
790 env.NIX_CFLAGS_COMPILE = toString [ "-I../.." "-DHAVE_DOM" ];
791 configureFlags = [ "--with-xsl=${libxslt.dev}" ];
795 internalDeps = [ php.extensions.dom ];
796 env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
800 buildInputs = [ libzip pcre2 ];
808 buildInputs = [ zlib ];
813 ] ++ lib.optionals (lib.versionOlder php.version "8.3") [
814 # Using version from PECL on new PHP versions.
817 buildInputs = [ uwimap openssl pam pcre2 libkrb5 ];
818 configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" "--with-kerberos" ];
822 # Convert the list of attrs:
823 # [ { name = <name>; ... } ... ]
825 # [ { name = <name>; value = <extension drv>; } ... ]
827 # which we later use listToAttrs to make all attrs available by name.
828 namedExtensions = builtins.map
831 value = mkExtension drv;
835 # Produce the final attribute set of all extensions defined.
837 builtins.listToAttrs namedExtensions