about summary refs log tree commit diff stats
path: root/internal/nix/package.go
blob: 813b2f0e78bc1952a4d22354ffdb6bb8d5b0ba85 (plain)
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
37
38
39
40
41
42
43
package nix

type Package struct {
	Name            string
	Attribute       string
	Source          string
	Broken          bool
	Definition      string
	Description     string
	Homepages       []string
	Licenses        []License
	LongDescription string
	MainProgram     string
	Maintainers     []Maintainer
	PackageSet      string
	Platforms       []string
	Version         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"
}

func (p Package) GetName() string {
	return p.Name
}

func (p Package) GetSource() string {
	return p.Source
}