1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

exclude frankenphp from older php versions

This commit is contained in:
Robin Appelman 2026-04-13 20:59:20 +02:00
commit a1ed0571be

View file

@ -37,8 +37,8 @@
frankenphp,
nushell,
}: let
inherit (builtins) toString;
inherit (lib) readFile getExe concatStringsSep splitString take;
inherit (builtins) toString compareVersions;
inherit (lib) readFile getExe concatStringsSep splitString take optionals;
version = (fromTOML (readFile ../../Cargo.toml)).package.version;
@ -150,17 +150,20 @@
tag = phpVersion;
fromImage = baseImage;
copyToRoot = [
phpEnv
phpEnv.packages.composer
phpunit
(frankenphp.override {
php = php.withExtensions (import ./php-ext.nix {
inherit lib php;
enableBlackfire = false;
});
})
];
copyToRoot =
[
phpEnv
phpEnv.packages.composer
phpunit
]
++ optionals ((compareVersions phpVersion "8.2") == 1) [
(frankenphp.override {
php = php.withExtensions (import ./php-ext.nix {
inherit lib php;
enableBlackfire = false;
});
})
];
};
in
dockerTools.buildLayeredImage {