diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-17 13:07:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-17 15:56:53 +0900 |
| commit | 30eb0d6a613ad268f6805ccbcdcabf158e7f526f (patch) | |
| tree | 07e55baa52748fd139e183017eeb43f5f64cee59 /internal/rosa/wayland.go | |
| parent | c2ff9c9fa55ea569a5e70ee90d2eb0b2ee2a0540 (diff) | |
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/wayland.go')
| -rw-r--r-- | internal/rosa/wayland.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/rosa/wayland.go b/internal/rosa/wayland.go index 3e77f52e..a2f3aefc 100644 --- a/internal/rosa/wayland.go +++ b/internal/rosa/wayland.go @@ -2,12 +2,12 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newWayland() (pkg.Artifact, string) { +func (t Toolchain) newWayland(s *S) (pkg.Artifact, string) { const ( version = "1.25.0" checksum = "q-4dYXme46JPgLGtXAxyZGTy7udll9RfT0VXtcW2YRR1WWViUhvdZXZneXzLqpCg" ) - return t.NewPackage("wayland", version, newFromGitLab( + return s.NewPackage(t, "wayland", version, newFromGitLab( "gitlab.freedesktop.org", "wayland/wayland", version, @@ -35,7 +35,7 @@ echo 'int main(){}' > tests/sanity-test.c ), version } func init() { - artifactsM[Wayland] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newWayland, Name: "wayland", @@ -49,15 +49,15 @@ func init() { }, ID: 10061, - } + }) } -func (t Toolchain) newWaylandProtocols() (pkg.Artifact, string) { +func (t Toolchain) newWaylandProtocols(s *S) (pkg.Artifact, string) { const ( version = "1.48" checksum = "xvfHCBIzXGwOqOu9b8dfhGw_U29Pd-g4JBwpYIaxee8SwEbxi6NaVU-Y1Q7wY4jK" ) - return t.NewPackage("wayland-protocols", version, newFromGitLab( + return s.NewPackage(t, "wayland-protocols", version, newFromGitLab( "gitlab.freedesktop.org", "wayland/wayland-protocols", version, @@ -121,7 +121,7 @@ GitLab ), version } func init() { - artifactsM[WaylandProtocols] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newWaylandProtocols, Name: "wayland-protocols", @@ -129,5 +129,5 @@ func init() { Website: "https://wayland.freedesktop.org/", ID: 13997, - } + }) } |
