feat: extract and store package set (e.g. nodePackages)
1 file changed, 7 insertions(+), 1 deletion(-)
changed files
M internal/importer/package.go → internal/importer/package.go
@@ -226,9 +226,15 @@ } subpath, line, _ := strings.Cut(i.pkg.Meta.Position, ":") - results <- nix.Package{ + pkgSet, _, found := strings.Cut(kv.Key, ".") + if !found { + pkgSet = "" + } + + results <- &nix.Package{ Name: i.pkg.Name, Source: i.source.Key, + PackageSet: pkgSet, Version: i.pkg.Version, Broken: i.pkg.Meta.Broken, Description: i.pkg.Meta.Description,