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

add php-imagick

fixes #22
This commit is contained in:
Robin Appelman 2026-05-07 18:58:54 +02:00
commit 373ce0f3fd
2 changed files with 18 additions and 21 deletions

View file

@ -35,6 +35,7 @@ in
gmp gmp
apcu apcu
ffi ffi
imagick
] ]
++ optionals (!debug) [ ++ optionals (!debug) [
smbclient # this breaks the build for no apparent reason smbclient # this breaks the build for no apparent reason

View file

@ -2,27 +2,23 @@
lib, lib,
php, php,
debug ? false, debug ? false,
}: let }:
inherit (builtins) compareVersions; php.buildEnv {
inherit (lib) optionals; extensions = import ./php-ext.nix {inherit lib php debug;};
withBlackfire = !debug && ((compareVersions php.version "8.1.0") == 1); extraConfig = ''
in xdebug.mode=debug,trace,profile
php.buildEnv { xdebug.start_with_request=trigger
extensions = import ./php-ext.nix {inherit lib php debug;}; xdebug.discover_client_host=false
extraConfig = '' xdebug.client_host=hazehost
xdebug.mode=debug,trace,profile xdebug.log_level=0
xdebug.start_with_request=trigger xdebug.output_dir=/tmp/xdebug
xdebug.discover_client_host=false
xdebug.client_host=hazehost
xdebug.log_level=0
xdebug.output_dir=/tmp/xdebug
memory_limit=512M memory_limit=512M
post_max_size 10G post_max_size 10G
upload_max_filesize 10G upload_max_filesize 10G
apc.enable_cli=1 apc.enable_cli=1
opcache.enable_cli=1 opcache.enable_cli=1
''; '';
} }