3
0
Fork 0
forked from mirrors/nixpkgs

php: Get rid of unnecessary runtime dependencies like gettext

This commit is contained in:
Eelco Dolstra 2013-06-04 14:48:44 +02:00
parent 930c958771
commit 94dfd4bdf9

View file

@ -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 = ''