mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-13 11:03:37 +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
|
||||
{
|
||||
name = defaultPackage;
|
||||
inherit (composerJson) version;
|
||||
version = exportedPackages."${defaultPackage}";
|
||||
source = {
|
||||
type = "path";
|
||||
path = projectSource;
|
||||
@ -219,7 +219,7 @@ in {
|
||||
rawObj.version;
|
||||
|
||||
dependencies = rawObj: finalObj:
|
||||
lib.attrsets.mapAttrsToList
|
||||
l.attrsets.mapAttrsToList
|
||||
(name: version: {inherit name version;})
|
||||
(cleanRequire rawObj.require);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user