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/pcre2.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/pcre2.go')
| -rw-r--r-- | internal/rosa/pcre2.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/pcre2.go b/internal/rosa/pcre2.go index 8aa89514..972ac41d 100644 --- a/internal/rosa/pcre2.go +++ b/internal/rosa/pcre2.go @@ -4,12 +4,12 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newPCRE2() (pkg.Artifact, string) { +func (t Toolchain) newPCRE2(s *S) (pkg.Artifact, string) { const ( version = "10.47" checksum = "IbC24vVayju6nB9EhrBPSDexk22wDecdpyrjgC3nCZXkwTnUjq4CD2q5sopqu6CW" ) - return t.NewPackage("pcre2", version, newFromGitHubRelease( + return s.NewPackage(t, "pcre2", version, newFromGitHubRelease( "PCRE2Project/pcre2", "pcre2-"+version, "pcre2-"+version+".tar.bz2", @@ -32,7 +32,7 @@ ln -s ../system/bin/toybox /bin/echo ), version } func init() { - artifactsM[PCRE2] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newPCRE2, Name: "pcre2", @@ -40,5 +40,5 @@ func init() { Website: "https://pcre2project.github.io/pcre2/", ID: 5832, - } + }) } |
