1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-08-02 12:14:46 +02:00

add phpunit 13

This commit is contained in:
Robin Appelman 2026-07-14 00:13:17 +02:00
commit 44da124f75
2 changed files with 106 additions and 107 deletions

View file

@ -38,10 +38,10 @@
nushell,
nix2container,
buildEnv,
}:
let
}: let
inherit (builtins) toString compareVersions;
inherit (lib)
inherit
(lib)
readFile
getExe
concatStringsSep
@ -75,8 +75,7 @@ let
'';
configs = callPackage ./configs.nix {};
scripts = callPackage ./scripts.nix {};
phpunitUnwrapped =
majorVersion:
phpunitUnwrapped = majorVersion:
callPackage ./phpunit.nix {
inherit majorVersion;
php = phpEnv;
@ -100,6 +99,9 @@ let
12)
PKG=${phpunitUnwrapped "12"}
;;
13)
PKG=${phpunitUnwrapped "13"}
;;
*)
PKG=${phpunitUnwrapped "10"}
;;
@ -152,7 +154,8 @@ let
clamav-data
];
phpPackages = [
phpPackages =
[
phpEnv
phpEnv.packages.composer
phpunit
@ -169,13 +172,10 @@ let
];
# https://blog.eigenvalue.net/2023-nix2container-everything-once/
foldImageLayers =
let
mergeToLayer =
priorLayers: component:
foldImageLayers = let
mergeToLayer = priorLayers: component:
assert builtins.isList priorLayers;
assert builtins.isAttrs component;
let
assert builtins.isAttrs component; let
layer = nix2container.buildLayer (
component
// {

View file

@ -1,15 +1,9 @@
{
lib,
fetchFromGitHub,
nix-update-script,
php,
majorVersion,
phpunit,
testers,
versionCheckHook,
}: let
inherit (lib) concatStringsSep splitString take;
phpVersion = concatStringsSep "." (take 2 (splitString "." php.version));
versions = {
"9" = {
version = "9.6.25";
@ -31,6 +25,11 @@
hash = "sha256-D5WI1kv05L8X3Gfw/MCxGdIcqWyWJg68GL9I24z/zIY=";
vendorHash = "sha256-DBzpwDVCOaw+5rXGLiCHBhKg+kibvBD1XDNFMte3Heo=";
};
"13" = {
version = "13.2.4";
hash = "sha256-TL6KYumNXUQ2nvkw3s/0UtT3CVw1YZfAmaCn8FHznrg=";
vendorHash = "sha256-Vlpjra9pcqhEy6fe6he6gsivQEmaHRgspy14DwCEOW4=";
};
};
in
php.buildComposerProject2 (finalAttrs: {