Fix: download composer directly instead of using Nix package

This commit is contained in:
babelbes0487 2026-06-19 16:51:46 +07:00
parent d1faca42b1
commit c53f2c0684
1 changed files with 4 additions and 2 deletions

View File

@ -12,12 +12,14 @@ nixPkgs = [
"php84Extensions.fileinfo",
"php84Extensions.openssl",
"nodejs_22",
"nodePackages.npm",
"composer"
"nodePackages.npm"
]
[phases.install]
cmds = [
"php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\"",
"php composer-setup.php --install-dir=/usr/local/bin --filename=composer",
"php -r \"unlink('composer-setup.php');\"",
"composer install --no-dev --optimize-autoloader --no-interaction",
"npm ci"
]