Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 34321d5

Browse files
committed
feat: add PHP 8.4 packages
1 parent 2470142 commit 34321d5

File tree

5 files changed

+58
-26
lines changed

5 files changed

+58
-26
lines changed

flake.lock

Lines changed: 40 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
url = "github:php/php-src/PHP-8.3";
1919
flake = false;
2020
};
21+
php-src-84 = {
22+
url = "github:php/php-src/PHP-8.4";
23+
flake = false;
24+
};
2125
};
2226

2327
outputs =

src/makePhpPackage.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let
8282

8383
dom = prevPO.extensions.dom.overrideAttrs (attrs: {
8484
NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE or "" + cflags;
85-
patches = (patches.dom or [ ]) ++ attrs.patches;
85+
patches = (patches.dom or [ ]) ++ (attrs.patches or []);
8686
});
8787

8888
opcache = prevPO.extensions.opcache.overrideAttrs (attrs: {
@@ -144,12 +144,12 @@ let
144144

145145
tokenizer = prevPO.extensions.tokenizer.overrideAttrs (attrs: {
146146
NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE or "" + cflags;
147-
patches = [ ] ++ lib.optionals (lib.versionAtLeast prevPO.php.version "8.1") attrs.patches;
147+
patches = [ ] ++ lib.optionals (lib.versionAtLeast prevPO.php.version "8.1") (attrs.patches or []);
148148
});
149149

150150
sqlite3 = prevPO.extensions.sqlite3.overrideAttrs (attrs: {
151151
NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE or "" + cflags;
152-
patches = (patches.sqlite3 or [ ]) ++ attrs.patches;
152+
patches = (patches.sqlite3 or [ ]) ++ (attrs.patches or []);
153153
});
154154
};
155155
};

src/overlays/active.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ let
5252
hash = "sha256-AcIM3hxaVpZlGHXtIvUHhJZ5+6dA+MQhYWt9Q9f3l9o=";
5353
extensions = extensions.php81-to-php8300;
5454
}
55+
{
56+
version = "8.4.2";
57+
hash = "sha256-70/pkhuIXOOwR3kqtgJg6vZX4igSvlEdGdDkXt+YR4M=";
58+
extensions = extensions.php-from-8400;
59+
}
5560
];
5661
in
5762
lib.mapAttrs (k: v: ((makePhpPackage v).withExtensions (v.extensions))) (makePackageSet versions)

src/overlays/snapshot.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ let
3030
src = inputs.php-src-83;
3131
extensions = extensions.php81-to-php8300;
3232
};
33+
php-8-4-snapshot = {
34+
version = "8.4.999-${inputs.php-src-84.shortRev}";
35+
src = inputs.php-src-84;
36+
extensions = extensions.php-from-8400;
37+
};
3338
php-master-snapshot = {
34-
version = "8.4.999-${inputs.php-src-master.shortRev}";
39+
version = "8.5.999-${inputs.php-src-master.shortRev}";
3540
src = inputs.php-src-master;
3641
extensions = extensions.php-from-8400;
3742
};

0 commit comments

Comments
 (0)