From 71de5479bc625aa101f72a24b056b687b0630a9a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 5 May 2024 21:31:40 +0200 Subject: feat: link to nixpkgs on github for declarations --- internal/options/option.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal') 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 -- cgit 1.4.1