aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/mesa.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 00:03:42 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 00:44:24 +0900
commit8807cbc7305e424725b2be8eed7ecd9234f7772e (patch)
tree5998f055396505becf0f99fcba3c86514f00650b /internal/rosa/mesa.go
parent0e95573f187f64de1a46f27af67325e57037b9a9 (diff)
internal/rosa: create metadata alongside artifact
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/mesa.go')
-rw-r--r--internal/rosa/mesa.go16
1 files changed, 4 insertions, 12 deletions
diff --git a/internal/rosa/mesa.go b/internal/rosa/mesa.go
index 58ca7c86..94cb120a 100644
--- a/internal/rosa/mesa.go
+++ b/internal/rosa/mesa.go
@@ -35,9 +35,7 @@ trap 'kill $XVFB_PID && wait $XVFB_PID' EXIT
), version
}
func init() {
- native.MustRegister(&Artifact{
- f: Toolchain.newLibglvnd,
-
+ native.mustRegister(Toolchain.newLibglvnd, &Metadata{
Name: "libglvnd",
Description: "The GL Vendor-Neutral Dispatch library",
Website: "https://gitlab.freedesktop.org/glvnd/libglvnd",
@@ -72,9 +70,7 @@ func (t Toolchain) newLibdrm() (pkg.Artifact, string) {
), version
}
func init() {
- native.MustRegister(&Artifact{
- f: Toolchain.newLibdrm,
-
+ native.mustRegister(Toolchain.newLibdrm, &Metadata{
Name: "libdrm",
Description: "a userspace library for accessing the DRM",
Website: "https://dri.freedesktop.org/",
@@ -111,9 +107,7 @@ func (t Toolchain) newLibva() (pkg.Artifact, string) {
), version
}
func init() {
- native.MustRegister(&Artifact{
- f: Toolchain.newLibva,
-
+ native.mustRegister(Toolchain.newLibva, &Metadata{
Name: "libva",
Description: "an implementation for VA-API (Video Acceleration API)",
Website: "https://01.org/vaapi",
@@ -238,9 +232,7 @@ func (t Toolchain) newMesa() (pkg.Artifact, string) {
), version
}
func init() {
- native.MustRegister(&Artifact{
- f: Toolchain.newMesa,
-
+ native.mustRegister(Toolchain.newMesa, &Metadata{
Name: "mesa",
Description: "open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more",
Website: "https://mesa3d.org",