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>
This commit is contained in:
2026-03-04 18:01:18 +09:00
parent 6fdd800b2b
commit d2c6d486b0
59 changed files with 1286 additions and 478 deletions

View File

@@ -2,7 +2,7 @@ package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newZlib() pkg.Artifact {
func (t Toolchain) newZlib() (pkg.Artifact, string) {
const (
version = "1.3.1"
checksum = "E-eIpNzE8oJ5DsqH4UuA_0GDKuQF5csqI8ooDx2w7Vx-woJ2mb-YtSbEyIMN44mH"
@@ -20,6 +20,14 @@ func (t Toolchain) newZlib() pkg.Artifact {
Host: `""`,
Build: `""`,
})
}), version
}
func init() {
artifactsM[Zlib] = Metadata{
f: Toolchain.newZlib,
Name: "zlib",
Description: "lossless data-compression library",
Website: "https://zlib.net/",
}
}
func init() { artifactsF[Zlib] = Toolchain.newZlib }