Commit Graph

22 Commits

Author SHA1 Message Date
Sigmanificient
0bbc8dffae treewide: set meta.license on hooks 2026-05-25 13:48:20 +02: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
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
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
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
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
489ac4817f build-support/php: refactor build scripts 2025-03-04 23:23:20 +01:00
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
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