php: set rootName & rootVersion for path sources

This commit is contained in:
Martin Toman 2022-09-25 15:29:24 -07:00
parent cac77826b8
commit 156d7e0f50

View File

@ -295,8 +295,8 @@ in {
if rawObj ? "source" && rawObj.source.type == "path"
then {
inherit (rawObj.source) type path;
rootName = null;
rootVersion = null;
rootName = finalObj.name;
rootVersion = finalObj.version;
}
else if rawObj ? "source" && rawObj.source.type == "git"
then {
@ -307,8 +307,8 @@ in {
then {
inherit (rawObj.dist) type;
path = rawObj.dist.url;
rootName = null;
rootVersion = null;
rootName = finalObj.name;
rootVersion = finalObj.version;
}
else
l.abort ''