diff options
author | Alan Pearce | 2024-05-16 17:09:10 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-16 20:30:16 +0200 |
commit | 51f774aaced998ad3c7c31e370aea22cc2fdbbc5 (patch) | |
tree | 3e61aa5ce2de887d23ea0e8236fadf9c5f4ce2be /internal/packages | |
parent | 9a2885694e2f8153151cc92772d2bea85672939a (diff) | |
download | searchix-51f774aaced998ad3c7c31e370aea22cc2fdbbc5.tar.lz searchix-51f774aaced998ad3c7c31e370aea22cc2fdbbc5.tar.zst searchix-51f774aaced998ad3c7c31e370aea22cc2fdbbc5.zip |
feat(importer): process packages from nixpkgs package.json
Diffstat (limited to 'internal/packages')
-rw-r--r-- | internal/packages/package.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/packages/package.go b/internal/packages/package.go new file mode 100644 index 0000000..e864b18 --- /dev/null +++ b/internal/packages/package.go @@ -0,0 +1,36 @@ +package packages + +type Package struct { + Name string + Meta Meta + Version string +} + +type Meta struct { + Broken bool + Description string + LongDescription string + Homepages []string + Licenses []License + MainProgram string + Maintainers []Maintainer + Platforms []string + Position string +} + +type License struct { + FullName string + Name string + SPDXId string + URL string + AppendixURL string +} + +type Maintainer struct { + Github string + Name string +} + +func (*Package) BleveType() string { + return "package" +} |