diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-04 18:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-05 00:20:27 +0900 |
| commit | d2c6d486b06073aa88ee1912d3587f657cd57304 (patch) | |
| tree | 42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/gtk.go | |
| parent | 6fdd800b2b421b32e7db373b576433126c4652a2 (diff) | |
internal/rosa: provide package metadata
This had to be done out-of-band because there was no way to efficiently represent these within Artifact.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gtk.go')
| -rw-r--r-- | internal/rosa/gtk.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/gtk.go b/internal/rosa/gtk.go index 06449ca2..eaa31ebc 100644 --- a/internal/rosa/gtk.go +++ b/internal/rosa/gtk.go @@ -7,7 +7,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newGLib() pkg.Artifact { +func (t Toolchain) newGLib() (pkg.Artifact, string) { const ( version = "2.86.4" checksum = "AfTjBrrxtXXPL6dFa1LfTe40PyPSth62CoIkM5m_VJTUngGLOFHw6I4XE7RGQE8G" @@ -46,6 +46,14 @@ func (t Toolchain) newGLib() pkg.Artifact { PCRE2, Libffi, Zlib, - ) + ), version +} +func init() { + artifactsM[GLib] = Metadata{ + f: Toolchain.newGLib, + + Name: "glib", + Description: "the GNU library of miscellaneous stuff", + Website: "https://gitlab.gnome.org/GNOME/glib/", + } } -func init() { artifactsF[GLib] = Toolchain.newGLib } |
