call php scripts via php interpreter instead of relying on shebang
This commit is contained in:
parent
57cecaf5d9
commit
7e01664164
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ let
|
|||
|
||||
# Reconstruct the installed.json file from the lock file
|
||||
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
|
||||
cd vendor
|
||||
|
@ -192,7 +192,7 @@ let
|
|||
|
||||
${stdenv.lib.optionalString executable ''
|
||||
# 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
|
||||
''}
|
||||
|
||||
|
|
Loading…
Reference in a new issue