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/xcb.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/xcb.go')
| -rw-r--r-- | internal/rosa/xcb.go | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/internal/rosa/xcb.go b/internal/rosa/xcb.go index 2f9abfc7..b27a4b98 100644 --- a/internal/rosa/xcb.go +++ b/internal/rosa/xcb.go @@ -2,7 +2,7 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newXCBProto() pkg.Artifact { +func (t Toolchain) newXCBProto() (pkg.Artifact, string) { const ( version = "1.17.0" checksum = "_NtbKaJ_iyT7XiJz25mXQ7y-niTzE8sHPvLXZPcqtNoV_-vTzqkezJ8Hp2U1enCv" @@ -13,11 +13,19 @@ func (t Toolchain) newXCBProto() pkg.Artifact { pkg.TarGzip, ), nil, (*MakeHelper)(nil), Python, - ) + ), version +} +func init() { + artifactsM[XCBProto] = Metadata{ + f: Toolchain.newXCBProto, + + Name: "xcb-proto", + Description: "XML-XCB protocol descriptions used by libxcb for the X11 protocol & extensions", + Website: "https://gitlab.freedesktop.org/xorg/proto/xcbproto", + } } -func init() { artifactsF[XCBProto] = Toolchain.newXCBProto } -func (t Toolchain) newXCB() pkg.Artifact { +func (t Toolchain) newXCB() (pkg.Artifact, string) { const ( version = "1.17.0" checksum = "hjjsc79LpWM_hZjNWbDDS6qRQUXREjjekS6UbUsDq-RR1_AjgNDxhRvZf-1_kzDd" @@ -33,6 +41,14 @@ func (t Toolchain) newXCB() pkg.Artifact { XCBProto, Xproto, LibXau, - ) + ), version +} +func init() { + artifactsM[XCB] = Metadata{ + f: Toolchain.newXCB, + + Name: "xcb", + Description: "The X protocol C-language Binding", + Website: "https://xcb.freedesktop.org/", + } } -func init() { artifactsF[XCB] = Toolchain.newXCB } |
