all repos — searchix @ 0eccb18ab0a7241c1f6f5fee99a3961101e35392

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

fix: no results for home-manager search

Alan Pearce
commit

0eccb18ab0a7241c1f6f5fee99a3961101e35392

parent

6789940f52e852426f224bcdbc9e6f6a8cb7be41

3 files changed, 5 insertions(+), 2 deletions(-)

jump to
M internal/config/config.gointernal/config/config.go
@@ -44,6 +44,7 @@ },
Sources: map[string]*importer.Source{ "nixos": { Name: "NixOS", + Key: "nixos", Enable: true, Type: importer.Channel, Channel: "nixpkgs",
@@ -60,6 +61,7 @@ },
}, "darwin": { Name: "Darwin", + Key: "darwin", Enable: false, Type: importer.Channel, Channel: "nix-darwin",
@@ -76,6 +78,7 @@ },
}, "home-manager": { Name: "Home Manager", + Key: "home-manager", Enable: false, Channel: "home-manager", Type: importer.Channel,
M internal/importer/importer.gointernal/importer/importer.go
@@ -11,6 +11,7 @@ )
type Source struct { Name string + Key string Enable bool Type Type Channel string
M internal/importer/ingest.gointernal/importer/ingest.go
@@ -8,7 +8,6 @@ "net/url"
"os" "reflect" "searchix/internal/options" - "strings" "github.com/bcicen/jstream" "github.com/mitchellh/mapstructure"
@@ -221,7 +220,7 @@
// slog.Debug("sending option", "name", kv.Key) results <- &options.NixOption{ Name: kv.Key, - Source: strings.ToLower(i.source.Name), + Source: i.source.Key, Declarations: decs, Default: convertNixValue(i.optJSON.Default), Description: options.Markdown(i.optJSON.Description),