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:
parent
0a16737398
commit
a1ed0571be
1 changed files with 16 additions and 13 deletions
|
|
@ -37,8 +37,8 @@
|
||||||
frankenphp,
|
frankenphp,
|
||||||
nushell,
|
nushell,
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) toString;
|
inherit (builtins) toString compareVersions;
|
||||||
inherit (lib) readFile getExe concatStringsSep splitString take;
|
inherit (lib) readFile getExe concatStringsSep splitString take optionals;
|
||||||
|
|
||||||
version = (fromTOML (readFile ../../Cargo.toml)).package.version;
|
version = (fromTOML (readFile ../../Cargo.toml)).package.version;
|
||||||
|
|
||||||
|
|
@ -150,17 +150,20 @@
|
||||||
tag = phpVersion;
|
tag = phpVersion;
|
||||||
fromImage = baseImage;
|
fromImage = baseImage;
|
||||||
|
|
||||||
copyToRoot = [
|
copyToRoot =
|
||||||
phpEnv
|
[
|
||||||
phpEnv.packages.composer
|
phpEnv
|
||||||
phpunit
|
phpEnv.packages.composer
|
||||||
(frankenphp.override {
|
phpunit
|
||||||
php = php.withExtensions (import ./php-ext.nix {
|
]
|
||||||
inherit lib php;
|
++ optionals ((compareVersions phpVersion "8.2") == 1) [
|
||||||
enableBlackfire = false;
|
(frankenphp.override {
|
||||||
});
|
php = php.withExtensions (import ./php-ext.nix {
|
||||||
})
|
inherit lib php;
|
||||||
];
|
enableBlackfire = false;
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
dockerTools.buildLayeredImage {
|
dockerTools.buildLayeredImage {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue