From 52aad27d73d21ea8f92d27416f8388c6f1405c2d Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 8 Nov 2024 20:18:23 +0100 Subject: [PATCH 1/2] nixos/castopod: pin to php 8.2 The package is pretty outdated, so I'm not sure if it'll work with PHP 8.3, let's keep it on 8.2 for now until the maintainers update it. --- nixos/modules/services/web-apps/castopod.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/castopod.nix b/nixos/modules/services/web-apps/castopod.nix index d3750c3dd393..e60a9b3b1fb7 100644 --- a/nixos/modules/services/web-apps/castopod.nix +++ b/nixos/modules/services/web-apps/castopod.nix @@ -6,7 +6,7 @@ let user = "castopod"; # https://docs.castopod.org/getting-started/install.html#requirements - phpPackage = pkgs.php.withExtensions ({ enabled, all }: with all; [ + phpPackage = pkgs.php82.withExtensions ({ enabled, all }: with all; [ intl curl mbstring From d2ed89833bd7b354dfbb08f544fcf229a0a63129 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 8 Nov 2024 20:12:52 +0100 Subject: [PATCH 2/2] php: 8.2 -> 8.3 PHP 8.2 will only receive security patches starting at the end of November[1], so it makes sense to bump the default version forward. I looked through all modules with the substring `pkgs.php`[2] and all of the usages looked fine or were fixed in a commit before this one. [1] https://www.php.net/supported-versions.php [2] I didn't take `with`/`let ... in` things into account, but honestly, if an application doesn't work with a newer PHP, it should probably be pinned down instead of blindly relying on `pkgs.php`. --- nixos/doc/manual/release-notes/rl-2505.section.md | 2 +- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index d55b5bfd42a7..10645d55e838 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -4,7 +4,7 @@ -- Create the first release note entry in this section! +- The default PHP version has been updated to 8.3. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 691601e3aa3f..c49b7b3b181d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7439,7 +7439,7 @@ with pkgs; # PHP interpreters, packages and extensions. # # Set default PHP interpreter, extensions and packages - php = php82; + php = php83; phpExtensions = php.extensions; phpPackages = php.packages;