internal/nix/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 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 Markdown 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 } |