From d2c6d486b06073aa88ee1912d3587f657cd57304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 4 Mar 2026 18:01:18 +0900 Subject: 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 --- internal/rosa/libxslt.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/libxslt.go') diff --git a/internal/rosa/libxslt.go b/internal/rosa/libxslt.go index 0162e439..87018adf 100644 --- a/internal/rosa/libxslt.go +++ b/internal/rosa/libxslt.go @@ -6,7 +6,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newLibxslt() pkg.Artifact { +func (t Toolchain) newLibxslt() (pkg.Artifact, string) { const ( version = "1.1.45" checksum = "vw72UbREQnA3YDYuZ9-93hDr9BYCaKV6oh_U4Kt4n1Js_na4E-nFj-ksZnZ0kvEK" @@ -27,6 +27,14 @@ func (t Toolchain) newLibxslt() pkg.Artifact { PkgConfig, Libxml2, - ) + ), version +} +func init() { + artifactsM[Libxslt] = Metadata{ + f: Toolchain.newLibxslt, + + Name: "libxslt", + Description: "an XSLT processor based on libxml2", + Website: "https://gitlab.gnome.org/GNOME/libxslt/", + } } -func init() { artifactsF[Libxslt] = Toolchain.newLibxslt } -- cgit v1.3.1