mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
parent
4ab23610a2
commit
3b4014b5e4
9 changed files with 83 additions and 41 deletions
44
nix/image/php-ext.nix
Normal file
44
nix/image/php-ext.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
php,
|
||||
debug ? false,
|
||||
enableBlackfire ? true,
|
||||
}: let
|
||||
inherit (builtins) compareVersions;
|
||||
inherit (lib) optionals;
|
||||
withBlackfire = enableBlackfire && !debug && ((compareVersions php.version "8.1.0") == 1);
|
||||
in
|
||||
{
|
||||
enabled,
|
||||
all,
|
||||
}:
|
||||
enabled
|
||||
++ (with all;
|
||||
[
|
||||
xdebug
|
||||
excimer
|
||||
inotify
|
||||
redis
|
||||
oci8
|
||||
zip
|
||||
pdo
|
||||
pdo_pgsql
|
||||
pdo_sqlite
|
||||
pdo_mysql
|
||||
pgsql
|
||||
intl
|
||||
curl
|
||||
mbstring
|
||||
pcntl
|
||||
ldap
|
||||
exif
|
||||
gmp
|
||||
apcu
|
||||
ffi
|
||||
]
|
||||
++ optionals (!debug) [
|
||||
smbclient # this breaks the build for no apparent reason
|
||||
]
|
||||
++ optionals withBlackfire [
|
||||
blackfire
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue