all repos — searchix @ 51f774aaced998ad3c7c31e370aea22cc2fdbbc5

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat(importer): process packages from nixpkgs package.json

Alan Pearce
commit

51f774aaced998ad3c7c31e370aea22cc2fdbbc5

parent

9a2885694e2f8153151cc92772d2bea85672939a

1 file changed, 36 insertions(+), 0 deletions(-)

changed files
A 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" +}