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/bzip2.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/bzip2.go')
| -rw-r--r-- | internal/rosa/bzip2.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/bzip2.go b/internal/rosa/bzip2.go index d7dd1380..35df6872 100644 --- a/internal/rosa/bzip2.go +++ b/internal/rosa/bzip2.go @@ -2,12 +2,12 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newBzip2() (pkg.Artifact, string) { +func (t Toolchain) newBzip2(s *S) (pkg.Artifact, string) { const ( version = "1.0.8" checksum = "cTLykcco7boom-s05H1JVsQi1AtChYL84nXkg_92Dm1Xt94Ob_qlMg_-NSguIK-c" ) - return t.NewPackage("bzip2", version, newTar( + return s.NewPackage(t, "bzip2", version, newTar( "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz", checksum, pkg.TarGzip, @@ -26,7 +26,7 @@ func (t Toolchain) newBzip2() (pkg.Artifact, string) { }), version } func init() { - artifactsM[Bzip2] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newBzip2, Name: "bzip2", @@ -34,5 +34,5 @@ func init() { Website: "https://sourceware.org/bzip2/", ID: 237, - } + }) } |
