Merge pull request #310325 from patka-123/php-default-updatescript2

buildsupport/php: add passthru.updateScript
This commit is contained in:
Pol Dellaiera 2024-05-13 14:08:52 +02:00 committed by GitHub
commit 7325d7ec2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
{
callPackage,
nix-update-script,
stdenvNoCC,
lib,
php,
@ -89,6 +90,13 @@ let
composerStrictValidation = previousAttrs.composerStrictValidation or true;
});
# Projects providing a lockfile from upstream can be automatically updated.
passthru = previousAttrs.passthru or { } // {
updateScript =
previousAttrs.passthru.updateScript
or (if finalAttrs.composerRepository.composerLock == null then nix-update-script { } else null);
};
env = {
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_DISABLE_NETWORK = "1";