cleanup: php: composer-lock translator

This commit is contained in:
Martin Toman 2022-08-19 13:19:52 -07:00
parent e812cf1aff
commit 1988b85f65

View File

@ -194,7 +194,7 @@ in {
# Add the top-level package, this is not written in composer.lock # Add the top-level package, this is not written in composer.lock
{ {
name = defaultPackage; name = defaultPackage;
inherit (composerJson) version; version = exportedPackages."${defaultPackage}";
source = { source = {
type = "path"; type = "path";
path = projectSource; path = projectSource;
@ -219,7 +219,7 @@ in {
rawObj.version; rawObj.version;
dependencies = rawObj: finalObj: dependencies = rawObj: finalObj:
lib.attrsets.mapAttrsToList l.attrsets.mapAttrsToList
(name: version: {inherit name version;}) (name: version: {inherit name version;})
(cleanRequire rawObj.require); (cleanRequire rawObj.require);