all repos — searchix @ 7aea6aa210a8939ac208fb7540d1b46ba69a995f

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

feat: enable searching via program names for multi-program packages implements: https://todo.sr.ht/~alanpearce/searchix/6

Alan Pearce
commit

7aea6aa210a8939ac208fb7540d1b46ba69a995f

parent

b26ddba432f8bde78022d2fc8837f0ffb25448b1

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

changed files
M internal/config/structs.gointernal/config/structs.go
@@ -48,6 +48,12 @@ ImportPath string `comment:"(Fetcher=channel) Sub-path of imported channel which contains the attribute above, e.g. release.nix"`
Timeout Duration `comment:"Abort import if it takes longer than this."` OutputPath string `comment:"(Fetcher=channel) Path under ./result symlink to folder containing {options,packages}.json."` Repo Repository `comment:"Used to generate declaration/definition links"` + Programs ProgramsDB `comment:"Used to enable searching for programs in multi-program packages"` +} + +type ProgramsDB struct { + Enable bool `comment:"Enable searching for programs in multi-program packages"` + Attribute string `comment:"Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file"` } func (source *Source) String() string {