feat: let PHP extension be updatable by this tool

Fix the computation of the position by detecting if the pkg is a PHP extension
This commit is contained in:
Pol Dellaiera 2022-12-29 14:06:08 +01:00 committed by Sandro Jäckel
parent ebeb417b46
commit 387027ee08
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -81,7 +81,9 @@ let
position = if pkg ? isRubyGem then
raw_version_position
else
else if pkg ? isPhpExtension then
raw_version_position
else
sanitizePosition (builtins.unsafeGetAttrPos "src" pkg);
in {{
name = pkg.name;