php: fixed building with cliSupport = false

This commit is contained in:
eyjhb 2021-02-23 22:13:54 +01:00
parent 60358d0dcf
commit a2ed10401b
No known key found for this signature in database
GPG key ID: 740FAE1502523BD8

View file

@ -123,7 +123,9 @@ let
postBuild = ''
cp ${extraInit} $out/lib/php.ini
wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
if test -e $out/bin/php; then
wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
fi
if test -e $out/bin/php-fpm; then
wrapProgram $out/bin/php-fpm --set PHP_INI_SCAN_DIR $out/lib