forked from mirrors/nixpkgs
php: Get rid of unnecessary runtime dependencies like gettext
This commit is contained in:
parent
930c958771
commit
94dfd4bdf9
|
@ -189,10 +189,18 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||
};
|
||||
|
||||
configurePhase = ''
|
||||
# Don't record the configure flags since this causes unnecessary
|
||||
# runtime dependencies.
|
||||
for i in main/build-defs.h.in scripts/php-config.in; do
|
||||
substituteInPlace $i \
|
||||
--replace '@CONFIGURE_COMMAND@' '(omitted)' \
|
||||
--replace '@CONFIGURE_OPTIONS@' "" \
|
||||
--replace '@PHP_LDFLAGS@' ""
|
||||
done
|
||||
|
||||
iniFile=$out/etc/php-recommended.ini
|
||||
[[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
|
||||
./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
|
||||
echo configurePhase end
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue