about summary refs log tree commit diff stats
path: root/internal/options
diff options
context:
space:
mode:
authorAlan Pearce2024-05-05 21:31:40 +0200
committerAlan Pearce2024-05-05 21:31:40 +0200
commit71de5479bc625aa101f72a24b056b687b0630a9a (patch)
tree8501b1f9c3b9cf27b79e651277c3612f30ed6ec3 /internal/options
parent1fdd1f839782339f39a16ba3100dec129cd40a0c (diff)
downloadsearchix-71de5479bc625aa101f72a24b056b687b0630a9a.tar.lz
searchix-71de5479bc625aa101f72a24b056b687b0630a9a.tar.zst
searchix-71de5479bc625aa101f72a24b056b687b0630a9a.zip
feat: link to nixpkgs on github for declarations
Diffstat (limited to 'internal/options')
-rw-r--r--internal/options/option.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/options/option.go b/internal/options/option.go
index d714ad2..b8b838a 100644
--- a/internal/options/option.go
+++ b/internal/options/option.go
@@ -47,9 +47,14 @@ func (html *HTML) UnmarshalJSON(raw []byte) error {
 	return nil
 }
 
+type Link struct {
+	Name string
+	URL  string `json:"url"`
+}
+
 type NixOption struct {
 	Option          string
-	Declarations    []string
+	Declarations    []Link
 	Default         NixValue
 	Description     HTML
 	Example         NixValue