Merge pull request #261595 from lorenzleutgeb/php

build-support/php: `phpDrv` in `nativeBuildInputs`
This commit is contained in:
Pol Dellaiera 2023-10-17 14:34:06 +02:00 committed by GitHub
commit d95cdde569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -17,6 +17,7 @@ let
nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [
composer
composer-local-repo-plugin
phpDrv
phpDrv.composerHooks.composerInstallHook
];

View file

@ -41,6 +41,7 @@ let
nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [
composer
composer-local-repo-plugin
phpDrv
phpDrv.composerHooks.composerRepositoryHook
];

View file

@ -3,7 +3,6 @@
, jq
, moreutils
, makeBinaryWrapper
, php
, cacert
, buildPackages
}:
@ -12,14 +11,14 @@
composerRepositoryHook = makeSetupHook
{
name = "composer-repository-hook.sh";
propagatedBuildInputs = [ jq moreutils php cacert ];
propagatedBuildInputs = [ jq moreutils cacert ];
substitutions = { };
} ./composer-repository-hook.sh;
composerInstallHook = makeSetupHook
{
name = "composer-install-hook.sh";
propagatedBuildInputs = [ jq makeBinaryWrapper moreutils php cacert ];
propagatedBuildInputs = [ jq makeBinaryWrapper moreutils cacert ];
substitutions = {
# Specify the stdenv's `diff` by abspath to ensure that the user's build
# inputs do not cause us to find the wrong `diff`.