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/musl.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/musl.go')
| -rw-r--r-- | internal/rosa/musl.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/internal/rosa/musl.go b/internal/rosa/musl.go index 076fffcc..1b2c509d 100644 --- a/internal/rosa/musl.go +++ b/internal/rosa/musl.go @@ -6,7 +6,7 @@ func (t Toolchain) newMusl( headers bool, env []string, extra ...pkg.Artifact, -) pkg.Artifact { +) (pkg.Artifact, string) { const ( version = "1.2.5" checksum = "y6USdIeSdHER_Fw2eT2CNjqShEye85oEg2jnOur96D073ukmIpIqDOLmECQroyDb" @@ -50,10 +50,16 @@ rmdir -v /work/lib Env: env, }, &helper, Coreutils, - ) + ), version } func init() { - artifactsF[Musl] = func(t Toolchain) pkg.Artifact { - return t.newMusl(false, nil) + artifactsM[Musl] = Metadata{ + f: func(t Toolchain) (pkg.Artifact, string) { + return t.newMusl(false, nil) + }, + + Name: "musl", + Description: "an implementation of the C standard library", + Website: "https://musl.libc.org/", } } |
