Commit graph

23 commits

Author SHA1 Message Date
Pol Dellaiera 8c40e060f3
build-support/php: update warnings when composer validate fails 2024-03-14 21:52:08 +01:00
Pol Dellaiera b2af238d31
build-support/php: update composer validate steps 2024-03-05 22:50:46 +01:00
Pol Dellaiera bc627a6aca
build-support/php: move functions around (dry) 2024-03-05 19:39:35 +01:00
Pol Dellaiera cf9e77ef8e
phpPackages.composer: 2.6.6 -> 2.7.1
Diff: https://github.com/composer/composer/compare/2.6.6..2.7.1
Changelog: https://github.com/composer/composer/releases/tag/2.7.1
Fix CVE: CVE-2024-24821
2024-03-05 19:39:35 +01:00
Pol Dellaiera f43fb4c110
build-support/php: set COMPOSER_ROOT_VERSION by default 2024-02-25 10:03:22 +01:00
Pol Dellaiera f59d1cf6d6
build-support/php: prevent the creation of symlinks of bin ending with .bat 2023-12-06 11:46:24 +01:00
Pol Dellaiera 46a7c4cade
build-support/php: add composerStrictValidation attribute
Set to `true` by default
2023-10-21 11:15:51 +02:00
Pol Dellaiera 921e3c16cc
build-support/php: add colors in case of errors 2023-10-20 23:39:53 +02:00
Pol Dellaiera 614182f9e0
Merge pull request #261582 from NixOS/php/build-support/fix-diff-and-env-vars
php/build-support: fix `diff` command and env. variables
2023-10-17 21:19:55 +02:00
Lorenz Leutgeb e7076170f0 build-support/php: phpDrv in nativeBuildInputs
Fixes NixOS/nixpkgs#261500
2023-10-17 12:50:37 +02:00
Pol Dellaiera 839498d572
php/build-support: fix usage of environment variables 2023-10-17 08:48:58 +02:00
Pol Dellaiera 207d5b4910
php/build-support: fix usage of diff condition
Remove double brackets and replace `diff` with `cmp`
2023-10-17 08:48:12 +02:00
Yureka 21488e65a7 build-support/php: fix support of vcs repositories 2023-10-16 15:35:20 +02:00
Pol Dellaiera 043a094c3b php.buildComposerProject: add missing COMPOSER_ROOT_VERSION env var.
This is mostly required for vimeo/psalm
It doesn't harm anything to add it anyway
2023-10-09 10:16:23 +02:00
Pol Dellaiera 2b12e3efe3 php.buildComposerProject: improve workflow in case of missing composer.lock file 2023-10-04 15:12:08 +02:00
Yureka dd104a90a8 php.buildComposerProject: warn about outdated vendorHash 2023-10-04 15:12:08 +02:00
Yureka 7d2c531f28 php.buildComposerProject: don't allow use without lockfile 2023-10-04 15:12:08 +02:00
Pol Dellaiera f0dc8516ed
build-support/php/hooks: add cacert 2023-09-25 22:10:28 +02:00
Pol Dellaiera 6e55577f33 build-support/php/composer-local-repo-plugin: 1.0.0 -> 1.0.2
Also fix https://github.com/NixOS/nixpkgs/issues/255860
2023-09-18 14:21:26 +02:00
Pol Dellaiera a2f8623363
build-support/php: prevent the creation of symlinks
Using symbolic links create issues on Darwin, therefore, using `makeWrapper` fix this.
2023-09-14 21:40:33 +02:00
Pol Dellaiera 3eb168da92
build-support/php: add composerNoDev, composerNoPlugins and composerNoScripts attributes 2023-09-13 17:08:04 +02:00
Elis Hirwing 1e238b8afe
php: Fix shellcheck string warnings in composer-install-hook 2023-09-13 15:00:04 +02:00
Pol Dellaiera b36ad2f517
php: add new builder buildComposerProject 2023-09-13 15:00:03 +02:00