Skip to content

Commit adac0a2

Browse files
committed
Upgrade nix deps and PHP versions
Remove PHP 7.4 due to lack of upstream support. Add 8.2.
1 parent a4552b2 commit adac0a2

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
php: ["7.4", "8.0", "8.1"]
25+
php: ["8.0", "8.1", "8.2"]
2626
wordpress: [ { "version": "5.9.2", "sha256": "12wzqrh21sh6pgvs0ayabcv66psq9a8cfz3qk43r5kjn5bfz4rbp" } ]
2727

2828
name: PHP ${{ matrix.php }}, WordPress ${{ matrix.wordpress.version }}

integration-tests/default.nix

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
11
{ sources ? import ../nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
2-
let
3-
inherit (pkgs) fetchurl;
2+
let inherit (pkgs) fetchurl;
43
in with pkgs;
54
let
6-
getEnv = name: default: (
7-
if "" == builtins.getEnv name
8-
then default
9-
else builtins.getEnv name
10-
);
5+
getEnv = name: default:
6+
(if "" == builtins.getEnv name then default else builtins.getEnv name);
117
composerPackages = {
12-
"7.4" = php74Packages.composer;
138
"8.0" = php80Packages.composer;
149
"8.1" = php81Packages.composer;
10+
"8.2" = php82Packages.composer;
1511
};
1612
phpPackages = {
17-
"7.4" = pkgs.php74;
1813
"8.0" = pkgs.php80;
1914
"8.1" = pkgs.php81;
15+
"8.2" = pkgs.php82;
2016
};
21-
phpVersion = getEnv "PHP_VERSION" "7.4";
17+
phpVersion = getEnv "PHP_VERSION" "8.0";
2218
composer = lib.getAttr phpVersion composerPackages;
2319
php = lib.getAttr phpVersion phpPackages;
24-
wordpress = ( pkgs.wordpress.overrideAttrs( oldAttrs: rec {
25-
version = getEnv "WORDPRESS_VERSION" "6.0.1";
26-
src = fetchurl {
27-
url = "https://wordpress.org/wordpress-${version}.tar.gz";
28-
sha256 = getEnv "WORDPRESS_SHA256" "f678596804aa89d7cdc9280862938464eab25aeaebfefa91ae175e15aa3ef054";
29-
};
30-
})
31-
);
20+
wordpress = (pkgs.wordpress.overrideAttrs (oldAttrs: rec {
21+
version = getEnv "WORDPRESS_VERSION" "6.0.1";
22+
src = fetchurl {
23+
url = "https://wordpress.org/wordpress-${version}.tar.gz";
24+
sha256 = getEnv "WORDPRESS_SHA256"
25+
"f678596804aa89d7cdc9280862938464eab25aeaebfefa91ae175e15aa3ef054";
26+
};
27+
}));
3228
in with pkgs; [
3329
(clojure.override { jdk = jdk17_headless; })
3430
composer

integration-tests/test-matrix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ouex
44

55
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
66

7-
for PHP_VERSION in "7.4" "8.0" "8.1"; do
7+
for PHP_VERSION in "8.0" "8.1" "8.2"; do
88
# shellcheck disable=SC2043
99
for WP in "6.0.1=f678596804aa89d7cdc9280862938464eab25aeaebfefa91ae175e15aa3ef054"; do
1010
WORDPRESS_VERSION="${WP%=*}"

nix/sources.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"nixpkgs": {
3-
"branch": "release-22.05",
3+
"branch": "release-22.11",
44
"description": "Nix Packages collection",
55
"homepage": "",
66
"owner": "NixOS",
77
"repo": "nixpkgs",
8-
"rev": "342fa101f4c9efe15ad306dc1eafc5ec5ba42727",
9-
"sha256": "1kras851gmrv0q96fd9dadcw92kh9h0p0rngzq9xp2balac9arh4",
8+
"rev": "9f11a2df77cb945c115ae2a65f53f38121597d73",
9+
"sha256": "0vihy3khca946b995yfq08i6x60ww083wb9cx19mqq3l6yjzlglr",
1010
"type": "tarball",
11-
"url": "https://github.com/NixOS/nixpkgs/archive/342fa101f4c9efe15ad306dc1eafc5ec5ba42727.tar.gz",
11+
"url": "https://github.com/NixOS/nixpkgs/archive/9f11a2df77cb945c115ae2a65f53f38121597d73.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
}
1414
}

0 commit comments

Comments
 (0)