composer-local-repo-plugin: Stop exposing this internal tool

This commit is contained in:
Elis Hirwing 2023-08-09 21:07:30 +02:00 committed by Pol Dellaiera
parent c0c01910ce
commit 9e701e6328
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, lib, writeTextDir, php, makeBinaryWrapper, fetchFromGitHub, fetchurl, composer-local-repo-plugin }:
{ callPackage, stdenvNoCC, lib, writeTextDir, php, makeBinaryWrapper, fetchFromGitHub, fetchurl }:
let
buildComposerProjectOverride = finalAttrs: previousAttrs:
@ -6,6 +6,7 @@ let
let
phpDrv = finalAttrs.php or php;
composer = finalAttrs.composer or phpDrv.packages.composer;
composer-local-repo-plugin = callPackage ./composer-local-repo-plugin.nix { };
composerLock = finalAttrs.composerLock or null;
in
{

View File

@ -1,4 +1,4 @@
{ stdenvNoCC, lib, writeTextDir, fetchFromGitHub, php, composer-local-repo-plugin }:
{ callPackage, stdenvNoCC, lib, writeTextDir, fetchFromGitHub, php }:
let
mkComposerRepositoryOverride =
@ -19,6 +19,7 @@ let
let
phpDrv = finalAttrs.php or php;
composer = finalAttrs.composer or phpDrv.packages.composer;
composer-local-repo-plugin = callPackage ./composer-local-repo-plugin.nix { };
in
assert (lib.assertMsg (previousAttrs ? src) "mkComposerRepository expects src argument.");
assert (lib.assertMsg (previousAttrs ? vendorHash) "mkComposerRepository expects vendorHash argument.");

View File

@ -17991,11 +17991,8 @@ with pkgs;
# PHP interpreters, packages and extensions.
composer = callPackage ../development/tools/misc/composer { };
composer-local-repo-plugin = callPackage ../build-support/php/composer-local-repo-plugin.nix {};
#
# Set default PHP interpreter, extensions and packages
php = php82;