mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 17:44:11 +02:00
parent
9e080f0d54
commit
373ce0f3fd
2 changed files with 18 additions and 21 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,8 @@
|
||||||
lib,
|
lib,
|
||||||
php,
|
php,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
}: let
|
}:
|
||||||
inherit (builtins) compareVersions;
|
php.buildEnv {
|
||||||
inherit (lib) optionals;
|
|
||||||
withBlackfire = !debug && ((compareVersions php.version "8.1.0") == 1);
|
|
||||||
in
|
|
||||||
php.buildEnv {
|
|
||||||
extensions = import ./php-ext.nix {inherit lib php debug;};
|
extensions = import ./php-ext.nix {inherit lib php debug;};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
xdebug.mode=debug,trace,profile
|
xdebug.mode=debug,trace,profile
|
||||||
|
|
@ -25,4 +21,4 @@ in
|
||||||
apc.enable_cli=1
|
apc.enable_cli=1
|
||||||
opcache.enable_cli=1
|
opcache.enable_cli=1
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue