mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-13 11:03:37 +03:00
php: composer-lock translator pass phpSemver
This commit is contained in:
parent
1988b85f65
commit
c05de8dee4
@ -119,6 +119,9 @@ in {
|
||||
composerJson = (projectTree.getNodeFromPath "composer.json").jsonContent;
|
||||
composerLock = (projectTree.getNodeFromPath "composer.lock").jsonContent;
|
||||
|
||||
# toplevel php semver
|
||||
phpSemver = composerJson.require."php";
|
||||
|
||||
# all the requires (dependencies)
|
||||
allRequires = composerLock.packages;
|
||||
|
||||
@ -169,7 +172,9 @@ in {
|
||||
# Extract subsystem specific attributes.
|
||||
# The structure of this should be defined in:
|
||||
# ./src/specifications/{subsystem}
|
||||
subsystemAttrs = {};
|
||||
subsystemAttrs = {
|
||||
inherit satisfiesSemver phpSemver;
|
||||
};
|
||||
|
||||
# name of the default package
|
||||
defaultPackage = composerJson.name;
|
||||
|
Loading…
Reference in New Issue
Block a user