···991010The different versions of PHP that nixpkgs provides are located under
1111attributes named based on major and minor version number; e.g.,
1212-`php74` is PHP 7.4.
1212+`php81` is PHP 8.1.
13131414Only versions of PHP that are supported by upstream for the entirety
1515of a given NixOS release will be included in that release of
···2323All available PHP attributes are wrappers around their respective
2424binary PHP package and provide commonly used extensions this way. The
2525real PHP 7.4 package, i.e. the unwrapped one, is available as
2626-`php74.unwrapped`; see the next section for more details.
2626+`php81.unwrapped`; see the next section for more details.
27272828Interactive tools built on PHP are put in `php.packages`; composer is
2929for example available at `php.packages.composer`.
+17-6
lib/types.nix
···570570 { modules
571571 , specialArgs ? {}
572572 , shorthandOnlyDefinesConfig ? false
573573+ , description ? null
573574574575 # Internal variable to avoid `_key` collisions regardless
575576 # of `extendModules`. Wired through by `evalModules`.
···618619619620 freeformType = base._module.freeformType;
620621622622+ name = "submodule";
623623+621624 in
622622- mkOptionType rec {
623623- name = "submodule";
624624- description = freeformType.description or name;
625625+ mkOptionType {
626626+ inherit name;
627627+ description =
628628+ if description != null then description
629629+ else freeformType.description or name;
625630 check = x: isAttrs x || isFunction x || path.check x;
626631 merge = loc: defs:
627632 (base.extendModules {
···647652 functor = defaultFunctor name // {
648653 type = types.submoduleWith;
649654 payload = {
650650- modules = modules;
651651- specialArgs = specialArgs;
652652- shorthandOnlyDefinesConfig = shorthandOnlyDefinesConfig;
655655+ inherit modules specialArgs shorthandOnlyDefinesConfig description;
653656 };
654657 binOp = lhs: rhs: {
655658 modules = lhs.modules ++ rhs.modules;
···666669 else if lhs.shorthandOnlyDefinesConfig == rhs.shorthandOnlyDefinesConfig
667670 then lhs.shorthandOnlyDefinesConfig
668671 else throw "A submoduleWith option is declared multiple times with conflicting shorthandOnlyDefinesConfig values";
672672+ description =
673673+ if lhs.description == null
674674+ then rhs.description
675675+ else if rhs.description == null
676676+ then lhs.description
677677+ else if lhs.description == rhs.description
678678+ then lhs.description
679679+ else throw "A submoduleWith option is declared multiple times with conflicting descriptions";
669680 };
670681 };
671682 };
···108108 <literal>(with foo; isPower && is32bit && isBigEndian)</literal>.
109109 </para>
110110 </listitem>
111111+ <listitem>
112112+ <para>
113113+ PHP 7.4 is no longer supported due to upstream not supporting
114114+ this version for the entire lifecycle of the 22.11 release.
115115+ </para>
116116+ </listitem>
111117 </itemizedlist>
112118 </section>
113119 <section xml:id="sec-release-22.11-notable-changes">
+2
nixos/doc/manual/release-notes/rl-2211.section.md
···45454646- The `isPowerPC` predicate, found on `platform` attrsets (`hostPlatform`, `buildPlatform`, `targetPlatform`, etc) has been removed in order to reduce confusion. The predicate was was defined such that it matches only the 32-bit big-endian members of the POWER/PowerPC family, despite having a name which would imply a broader set of systems. If you were using this predicate, you can replace `foo.isPowerPC` with `(with foo; isPower && is32bit && isBigEndian)`.
47474848+- PHP 7.4 is no longer supported due to upstream not supporting this
4949+ version for the entire lifecycle of the 22.11 release.
48504951<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
5052
···115115 user = "grocy";
116116 group = "nginx";
117117118118- # PHP 7.4 is the only version which is supported/tested by upstream:
119119- # https://github.com/grocy/grocy/blob/v3.0.0/README.md#how-to-install
120120- phpPackage = pkgs.php74;
118118+ # PHP 8.0 is the only version which is supported/tested by upstream:
119119+ # https://github.com/grocy/grocy/blob/v3.3.0/README.md#how-to-install
120120+ phpPackage = pkgs.php80;
121121122122 inherit (cfg.phpfpm) settings;
123123
···2233let
44 phpExt = php.withExtensions
55- ({ enabled, all }: with all; [ json filter mysqlnd mysqli pdo pdo_mysql ]);
55+ ({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql ]);
66in stdenv.mkDerivation rec {
77 pname = "engelsystem";
88 version = "3.1.0";
+4
pkgs/top-level/aliases.nix
···10131013 phwmon = throw "phwmon has been removed: abandoned by upstream"; # Added 2022-04-24
1014101410151015 # Obsolete PHP version aliases
10161016+ php74 = throw "php74 has been dropped due to the lack of maintanence from upstream for future releases"; # Added 2022-05-24
10171017+ php74Packages = php74; # Added 2022-05-24
10181018+ php74Extensions = php74; # Added 2022-05-24
10191019+10161020 php73 = throw "php73 has been dropped due to the lack of maintanence from upstream for future releases"; # Added 2021-06-03
10171021 php73Packages = php73; # Added 2021-06-03
10181022 php73Extensions = php73; # Added 2021-06-03