all repos — searchix @ 42611df8133fc88bac5947a65a18fa095d68a951

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

feat(index): enable storage of package data

Alan Pearce
commit

42611df8133fc88bac5947a65a18fa095d68a951

parent

29f2099e68a3226060308c66e5b1aa19fb2ba8e0

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

changed files
M internal/nix/importable.gointernal/nix/importable.go
@@ -1,5 +1,7 @@
package nix +import "encoding/gob" + type Importable interface { BleveType() string GetName() string
@@ -9,3 +11,8 @@
func GetKey(i Importable) string { return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName() } + +func init() { + gob.Register(Option{}) + gob.Register(Package{}) +}