Fix: download composer directly instead of using Nix package
This commit is contained in:
parent
d1faca42b1
commit
c53f2c0684
|
|
@ -12,12 +12,14 @@ nixPkgs = [
|
||||||
"php84Extensions.fileinfo",
|
"php84Extensions.fileinfo",
|
||||||
"php84Extensions.openssl",
|
"php84Extensions.openssl",
|
||||||
"nodejs_22",
|
"nodejs_22",
|
||||||
"nodePackages.npm",
|
"nodePackages.npm"
|
||||||
"composer"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[phases.install]
|
[phases.install]
|
||||||
cmds = [
|
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",
|
"composer install --no-dev --optimize-autoloader --no-interaction",
|
||||||
"npm ci"
|
"npm ci"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue