all repos — searchix @ 0ef52f2f82c62694c5420f7f6c82fb8c45900d1d

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

internal/packages/package.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"
}