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>
This commit is contained in:
2026-05-17 13:07:12 +09:00
parent c2ff9c9fa5
commit 30eb0d6a61
95 changed files with 1514 additions and 1567 deletions

View File

@@ -2,12 +2,12 @@ package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newLMSensors() (pkg.Artifact, string) {
func (t Toolchain) newLMSensors(s *S) (pkg.Artifact, string) {
const (
version = "3-6-2"
checksum = "7JYNutrihe-FP6r3ftf96uFZJJWPfxnBHL0ALSMA-vovaXVRr-sAjlLitw7WWpCI"
)
return t.NewPackage("lm_sensors", version, newFromGitHub(
return s.NewPackage(t, "lm_sensors", version, newFromGitHub(
"lm-sensors/lm-sensors",
"V"+version,
checksum,
@@ -47,7 +47,7 @@ ln -s \
), version
}
func init() {
artifactsM[LMSensors] = Metadata{
native.MustRegister(&Artifact{
f: Toolchain.newLMSensors,
Name: "lm_sensors",
@@ -55,5 +55,5 @@ func init() {
Website: "https://hwmon.wiki.kernel.org/lm_sensors",
ID: 1831,
}
})
}