summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPiotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com>2025-02-10 21:44:02 +0100
committerPiotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com>2025-02-10 21:44:02 +0100
commit4a0453277bbafa001855cb925b31652445238d68 (patch)
tree8fb4b19009343cc73b4095f9d098f101c9a6c2d6 /doc
parentmattermost-desktop: fix version matching in the update script (#380935) (diff)
downloadnixpkgs-4a0453277bbafa001855cb925b31652445238d68.tar.gz
doc/php: use buildComposerProject2
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/php.section.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/languages-frameworks/php.section.md b/doc/languages-frameworks/php.section.md
index 1bcb4ee727a5..bc37034fafe5 100644
--- a/doc/languages-frameworks/php.section.md
+++ b/doc/languages-frameworks/php.section.md
@@ -182,7 +182,7 @@ code, while others choose not to.
In Nix, there are multiple approaches to building a Composer-based project.
-One such method is the `php.buildComposerProject` helper function, which serves
+One such method is the `php.buildComposerProject2` helper function, which serves
as a wrapper around `mkDerivation`.
Using this function, you can build a PHP project that includes both a
@@ -217,19 +217,19 @@ To customize the PHP version, you can specify the `php` attribute. Similarly, if
you wish to modify the Composer version, use the `composer` attribute. It is
important to note that both attributes should be of the `derivation` type.
-Here's an example of working code example using `php.buildComposerProject`:
+Here's an example of working code example using `php.buildComposerProject2`:
```nix
{ php, fetchFromGitHub }:
-php.buildComposerProject (finalAttrs: {
+php.buildComposerProject2 (finalAttrs: {
pname = "php-app";
version = "1.0.0";
src = fetchFromGitHub {
owner = "git-owner";
repo = "git-repo";
- rev = finalAttrs.version;
+ tag = finalAttrs.version;
hash = "sha256-VcQRSss2dssfkJ+iUb5qT+FJ10GHiFDzySigcmuVI+8=";
};