about summary refs log tree commit diff stats
path: root/internal/nix/importable.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 14:05:31 +0200
committerAlan Pearce2024-05-17 14:05:31 +0200
commit42611df8133fc88bac5947a65a18fa095d68a951 (patch)
tree5c582bbec78b6838891fcec216f4dcd92bf45f99 /internal/nix/importable.go
parent29f2099e68a3226060308c66e5b1aa19fb2ba8e0 (diff)
downloadsearchix-42611df8133fc88bac5947a65a18fa095d68a951.tar.lz
searchix-42611df8133fc88bac5947a65a18fa095d68a951.tar.zst
searchix-42611df8133fc88bac5947a65a18fa095d68a951.zip
feat(index): enable storage of package data
Diffstat (limited to 'internal/nix/importable.go')
-rw-r--r--internal/nix/importable.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/nix/importable.go b/internal/nix/importable.go
index 309ec5f..37532cd 100644
--- a/internal/nix/importable.go
+++ b/internal/nix/importable.go
@@ -1,5 +1,7 @@
 package nix
 
+import "encoding/gob"
+
 type Importable interface {
 	BleveType() string
 	GetName() string
@@ -9,3 +11,8 @@ type Importable interface {
 func GetKey(i Importable) string {
 	return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName()
 }
+
+func init() {
+	gob.Register(Option{})
+	gob.Register(Package{})
+}