mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
45 lines
774 B
Nix
45 lines
774 B
Nix
{
|
|
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
|
|
imagick
|
|
]
|
|
++ optionals (!debug) [
|
|
# smbclient # this breaks the build for no apparent reason
|
|
]
|
|
++ optionals withBlackfire [
|
|
blackfire
|
|
])
|