mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-14 17:14:39 +03:00
cleanup: php: composer-lock translator
This commit is contained in:
parent
e812cf1aff
commit
1988b85f65
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user