From 7562d4ccc74e33837c1909903df14dbb78fbacf4 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 24 Aug 2024 01:27:00 +0200 Subject: [PATCH] php84: init at 8.4.0beta3 --- .github/workflows/build.yaml | 1 + README.md | 1 + flake.nix | 2 +- pkgs/package-overrides.nix | 19 ++++++++++++++++++- pkgs/phps.nix | 4 ++++ 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2cf03bf0..9d07146e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,6 +16,7 @@ jobs: strategy: matrix: php: + - branch: '8.4' - branch: '8.3' - branch: '8.2' - branch: '8.1' diff --git a/README.md b/README.md index 6fed4bd4..02b98130 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ The following versions are currently available: - `php81` - `php82` - `php83` +- `php84` There is also a `php` package which is the alias of the default PHP version in Nixpkgs. diff --git a/flake.nix b/flake.nix index c55dac3f..8cd2db03 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ }; in rec { packages = { - inherit (pkgs) php php56 php70 php71 php72 php73 php74 php80 php81 php82 php83; + inherit (pkgs) php php56 php70 php71 php72 php73 php74 php80 php81 php82 php83 php84; }; checks = import ./checks.nix { diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index 28d7e54d..efa8daf2 100644 --- a/pkgs/package-overrides.nix +++ b/pkgs/package-overrides.nix @@ -830,7 +830,24 @@ in xdebug = # xdebug versions were determined using https://xdebug.org/docs/compat - if lib.versionAtLeast prev.php.version "8.0" then + if lib.versionAtLeast prev.php.version "8.4" then + prev.extensions.xdebug.overrideAttrs (attrs: { + name = "xdebug-3.4.0alpha1"; + version = "3.4.0alpha1"; + src = pkgs.fetchurl { + url = "https://xdebug.org/files/xdebug-3.4.0alpha1.tgz"; + hash = "sha256-S4oizwlhom50uV+ToV6ctdWka8d2CKnAPb2YmWOytOc="; + }; + + patches = [ + # Fix missing ZEND_EXIT + (pkgs.fetchpatch { + url = "https://github.com/xdebug/xdebug/commit/6ecd35f898e67cbe7f9257e7cb3a4c602a3dc8ec.patch"; + hash = "sha256-IYc1KKPBYek4AXEijoM9RaTwp51J0Gz/CQ1HgmTct3Q="; + }) + ]; + }) + else if lib.versionAtLeast prev.php.version "8.0" then prev.extensions.xdebug else if lib.versionAtLeast prev.php.version "7.2" then prev.extensions.xdebug.overrideAttrs (attrs: { diff --git a/pkgs/phps.nix b/pkgs/phps.nix index 49f6c27d..c53023b2 100644 --- a/pkgs/phps.nix +++ b/pkgs/phps.nix @@ -164,4 +164,8 @@ in php83 = prev.php83.override { inherit packageOverrides; }; + + php84 = prev.php84.override { + inherit packageOverrides; + }; }