account for peer dependency virtual versions in lockfile key parsing

This commit is contained in:
EatThePooh 2025-08-12 19:21:15 +07:00
parent 1a55a11500
commit 8acb849943

View file

@ -28,7 +28,7 @@ let
# Create derivation for a single npm package
mkNpmDep = key: value:
let
match = builtins.match "(.+)@(.+)" key;
match = builtins.match "(@?[^@]+)@([^_]+).*" key;
name = builtins.elemAt match 0;
version = builtins.elemAt match 1;
in