Commit graph

90 commits

Author SHA1 Message Date
adeci
1a3015f3c3 build-support/php: fix updateScript crash when composerVendor lacks composerLock 2026-02-08 19:52:08 -05:00
Liam McDermott
ab729870ff build-support/php: fix composer hook defaults and lockfile handling 2026-01-16 17:21:28 -05:00
Pol Dellaiera
00824371bb build-support/php: improve PHP builder stability 2025-12-22 15:13:36 +01:00
Lucas Hoffmann
48c9505ba1 build-support/php: fix variable substitution in bash
The build environment sets the bash option NOUNSET which fails the
script for any substitution of uninitialized variables.  The ${VAR-}
construct circumvents this.

This was tested by building the following derivations:

- phpPackages.box{,.composerVendor}
- phpPackages.cyclonedx-php-composer
- phpPackages.phing{,.composerVendor}
- phpPackages.php-parallel-lint{,.composerVendor}
- phpPackages.castor{,.composerVendor}
- phpPackages.phive{,.composerVendor}
- phpPackages.php-cs-fixer{,.composerVendor}
- phpPackages.phpspy
- phpPackages.composer
- phpPackages.grumphp{,.composerVendor}
- phpPackages.phpinsights{,.composerVendor}
- phpPackages.phpstan{,.composerVendor}
- phpPackages.composer-local-repo-plugin
- phpPackages.phan
- phpPackages.php-codesniffer{,.composerVendor}
- phpPackages.phpmd{,.composerVendor}
- phpPackages.psalm{,.composerVendor}
- psysh{,.composerVendor}
- deployer{,.composerVendor}
2025-11-04 11:47:53 +01:00
patka
bd8420d9c5
phpPackages.composer: 2.8.5 -> 2.8.11, add completion, adopt 2025-08-24 12:37:37 +02:00
Pol Dellaiera
cabc16dc59 maintainers: drop drupol from the PHP team and packages 2025-08-20 17:54:33 +02:00
Pol Dellaiera
deb1fc47d3 build-support/php: fix by moving cacert to propagatedBuildInputs
Fix: https://github.com/NixOS/nixpkgs/pull/425760#issuecomment-3138172663
2025-07-31 08:04:02 +02:00
Pol Dellaiera
7b38ea74de
build-support/php: let vendorHash be overridden correctly (#428711) 2025-07-28 18:14:30 +02:00
Pol Dellaiera
a85eaf31c2 build-support/php: let vendorHash be overridden correctly 2025-07-27 07:41:03 +02:00
Pol Dellaiera
f767ed7fee build-support/php: avoid code duplication in variables expansion 2025-07-26 21:46:32 +02:00
Pol Dellaiera
55efdc126f build-support/php: update composer parameters and variable expansion 2025-07-26 19:50:32 +02:00
Wolfgang Walther
5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Jonas Heinrich
3e2c2cd8f4 buildComposerProject: change propagatedBuildInputs to propagatedNativeBuildInputs 2025-07-16 15:45:36 +02:00
Jonas Heinrich
2de11e1e96 buildComposerProject: Drop moreutils dependency 2025-07-16 13:38:58 +02:00
R. Ryantm
e6a07d7158
php81Extensions.meminfo: unstable-2022-03-25 -> 1.1.1-unstable-2022-03-25 2025-07-13 17:10:23 +02:00
Pol Dellaiera
767ed2a8d0 build-support/php: make shellcheck happy 2025-06-22 22:59:55 +02:00
Pol Dellaiera
bb0c422eb6 build-support/php: run shfmt on hooks 2025-06-22 22:45:31 +02:00
Pol Dellaiera
7628af124b build-support/php: DRY improvements 2025-06-22 22:43:43 +02:00
Pol Dellaiera
64b246657d build-support/php: enable support for dontCheckForBrokenSymlinks set to true by default 2025-03-04 23:23:20 +01:00
Pol Dellaiera
489ac4817f build-support/php: refactor build scripts 2025-03-04 23:23:20 +01:00
Pol Dellaiera
cd850d57e0 build-support/php: support lib.extendMkDerivation for php.mkComposerVendor
Inspired from https://github.com/NixOS/nixpkgs/pull/382550

Context: https://github.com/NixOS/nixpkgs/pull/234651
2025-03-01 13:22:57 +05:30
Pol Dellaiera
862a3e90a0 build-support/php: support lib.extendMkDerivation for php.buildComposerProject2
Inspired from https://github.com/NixOS/nixpkgs/pull/382550

Context: https://github.com/NixOS/nixpkgs/pull/234651
2025-03-01 13:22:57 +05:30
Tiago Dinis
b370e7f14a pkgs/build-support/php/builders/v2: copy installer-paths to the output
CMSes like Drupal or Wordpress use "extra.installer-paths" property to
redirect certain packages to certain folders, which means only copying
the vendor folder is not enough, we have to copy all dependencies in the
installer-paths.

Fixes #373626

pkgs/build-support/php/builders/v2: check if installer-paths exists before copying

pkgs/build-support/php/builders/v2: strip out the git repositories
2025-01-20 16:08:06 +00:00
Pol Dellaiera
1aeb9801ef build-support/php: improve PHP builder
This update provide a new feature that allows to build packages without `composer.lock` file (e.g. PHP CodeSniffer).
2025-01-10 20:51:32 +01:00
github-actions[bot]
12c211c64e
Merge master into staging-next 2024-12-18 00:15:09 +00:00
Olivér Falvai
d7ba1edfb5
build-pecl: fix strictDeps
phpize from the php package itself is needed in autoreconfPhase
2024-12-16 23:24:39 +01:00
Sefa Eyeoglu
2115f02b9a
.editorconfig: Format .bash files like .sh (#354885) 2024-11-29 23:36:19 +01:00
Sandro Jäckel
7caed32d0b
build-support/php/buildComposerRepository: show composer-repository in logs (eg: nix build) when building the vendor derivation 2024-11-10 23:07:16 +01:00
Victor Engmark
106ba63900
tree-wide: Indent .bash files like .sh 2024-11-10 14:52:08 +13:00
Pol Dellaiera
95f5cf75d3
build-support/php: fix typo 2024-09-23 11:41:15 +02:00
Pol Dellaiera
07e6929c81
build-support/php: fix environment variables for Composer 2024-09-23 09:20:42 +02:00
Pol Dellaiera
3bcaabbb71
build-support/php: fix comments in multi-lines command 2024-09-23 09:19:29 +02:00
Patka
a9d1d29522
build-support/php: fix reproducibility of buildComposerProject2 2024-09-22 18:59:35 +02:00
Pol Dellaiera
65c0e4ebf6
build-support/php: implement v2 2024-08-15 13:43:00 +02:00
Pol Dellaiera
b356a808fd
build-support/php: copy v1 into v2 2024-08-15 13:43:00 +02:00
Pol Dellaiera
450e9396fd
php.packages.composer: do not use buildComposerProject
I decided to avoid the use of `buildComposerProject because it requires `composer-local-repo-plugin` which is going to be refactored.
2024-05-19 22:10:03 +02:00
Pol Dellaiera
6bad2e219e
build-support/php: use php.packages.composer-local-repo-plugin 2024-05-19 22:10:03 +02:00
Pol Dellaiera
bd92bef332
php.buildComposerWithPlugin: init new builder 2024-05-19 22:10:02 +02:00
Pol Dellaiera
b258b44a5d
build-support/php: add composerGlobal variable
This doesn't change anything to the existing workflow
2024-05-17 10:25:02 +02:00
Patka
8cd73735dc
buildsupport/php: add passthru.updateScript
PHP packages where upstream provides a lock file can be automatically updated with the standard updateScript
2024-05-09 14:42:27 +02:00
Pol Dellaiera
3d155494e4
build-support/php: reorganize files
Pave the way for having multiple versions in the future
2024-05-07 11:18:34 +02:00
Pol Dellaiera
4d2dad358d
build-support/php: remove obsolete parameters 2024-05-05 19:51:01 +02:00
Pol Dellaiera
31bdcac6a0
build-support/php: add missing binding 2024-05-05 18:51:03 +02:00
Pol Dellaiera
d8f509a470
build-support/php: composer, add meta.mainProgram 2024-05-05 18:51:03 +02:00
Pol Dellaiera
409e640cef
build-support/php: use lib.getExe 2024-05-05 18:51:03 +02:00
Pol Dellaiera
b5855e4e66
build-support/php: move environment variables under env attribute 2024-05-05 18:51:03 +02:00
Pol Dellaiera
6ca2dfeaec
build-support/php: remove obsolete parameters 2024-05-05 18:45:27 +02:00
Pol Dellaiera
75ae762133
workflows/check-nix-format: enforce for build-support/php 2024-05-04 23:06:24 +02:00
Pol Dellaiera
e7ad484731
build-support/php: replace --no-ansi with --no-progress 2024-05-01 11:15:39 +02:00
Pol Dellaiera
382220e679
build-support/php: remove makeBinaryWrapper 2024-05-01 11:15:16 +02:00