call php scripts via php interpreter instead of relying on shebang

This commit is contained in:
Christian Blades 2020-06-04 13:59:23 -04:00
parent 57cecaf5d9
commit 7e01664164

View file

@ -174,7 +174,7 @@ let
# Reconstruct the installed.json file from the lock file # Reconstruct the installed.json file from the lock file
mkdir -p vendor/composer mkdir -p vendor/composer
${reconstructInstalled} composer.lock > vendor/composer/installed.json ${php}/bin/php ${reconstructInstalled} composer.lock > vendor/composer/installed.json
# Copy or symlink the provided dependencies # Copy or symlink the provided dependencies
cd vendor cd vendor
@ -192,7 +192,7 @@ let
${stdenv.lib.optionalString executable '' ${stdenv.lib.optionalString executable ''
# Reconstruct the bin/ folder if we deploy an executable project # Reconstruct the bin/ folder if we deploy an executable project
${constructBin} composer.json ${php}/bin/php ${constructBin} composer.json
ln -s $(pwd)/vendor/bin $out/bin ln -s $(pwd)/vendor/bin $out/bin
''} ''}