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
Elis Hirwing
ccaba16b29
Merge pull request #261088 from NixOS/build-support/php/remove-autoloader-prefix
...
build-support/php: remove obsolete autoloader-suffix
2023-10-17 07:36:13 +02:00
Elis Hirwing
54952f4668
Merge pull request #261413 from yu-re-ka/composer-vcs-repos
...
build-support/php: fix support of vcs repositories
2023-10-17 07:29:41 +02:00
Pol Dellaiera
e34034b7a6
build-support/php: add doInstallCheck
2023-10-16 22:07:52 +02:00
Pol Dellaiera
12741f2c30
build-support/php: add installCheckPhase
2023-10-16 17:13:34 +02:00
Yureka
21488e65a7
build-support/php: fix support of vcs repositories
2023-10-16 15:35:20 +02:00
Pol Dellaiera
ba24c3880f
build-support/php: remove obsolete autoloader-suffix
...
Since https://github.com/composer/composer/pull/11663 , the composer output is stable and reproducible, therefore, that prefix is now obsolete.
2023-10-14 18:00:57 +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
Elis Hirwing
f0987a05a9
php.packages.composer: Make sure that both composers use the same version
...
So in php we have a bootstrapping composer (that lives in
composer-phar.nix) that downloads the binary distribution of composer
to be able to bootstrap and build a composer built from source.
However, it's desirable to keep composer updated at all time, and this
includes the phar one that isn't used by users directly. So this makes
sure we don't "forget" about the phar one since it now borrows the
version from the source version. However, then it also made sense to
move the hash for the phar to the same file as the source
composer. Then we can control the full upgrade life cycle of both the
phar and source versions of composer from the same file.
2023-10-06 20:09:48 +02:00
Pol Dellaiera
3360cb0bb0
phpPackages.composer: 2.6.4 -> 2.6.5
2023-10-06 10:30:07 +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
a39417a673
phpPackages.composer: 2.6.3 -> 2.6.4
...
Security release: To be mitigated since we are not using a publicly accessible composer.phar (GHSA-jm6m-4632-36hf / CVE-2023-43655).
Changelog: https://github.com/composer/composer/releases/tag/2.6.4
2023-09-29 12:25:04 +02:00
Pol Dellaiera
f0dc8516ed
build-support/php/hooks: add cacert
2023-09-25 22:10:28 +02:00
Yureka
5d20a2b99a
buildPecl: pass hash attr to fetchurl
2023-09-25 19:24:40 +02:00
Pol Dellaiera
9675e82ea1
build-support/php/composer-local-repo-plugin: 1.0.2 -> 1.0.3
2023-09-21 21:15:57 +02:00
Pol Dellaiera
c8b9e229e1
phpPackages.composer: 2.6.2 -> 2.6.3
2023-09-20 16:53:03 +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
Pol Dellaiera
1173a34d15
build-support/php: move internal tools in php/build-support/php/pkgs
2023-09-13 17:07:48 +02:00
Elis Hirwing
1e238b8afe
php: Fix shellcheck string warnings in composer-install-hook
2023-09-13 15:00:04 +02:00
Elis Hirwing
2160ed2bcc
composer: Stop exposing composer built from a phar file
2023-09-13 15:00:04 +02:00
Elis Hirwing
9e701e6328
composer-local-repo-plugin: Stop exposing this internal tool
2023-09-13 15:00:03 +02:00
Pol Dellaiera
b36ad2f517
php: add new builder buildComposerProject
2023-09-13 15:00:03 +02:00
Pol Dellaiera
27e3b694e7
composer-local-repo-plugin: init at 1.0.0
2023-09-13 15:00:03 +02:00